Fixed the issue when the user is not authenticated and the publicId is not empty

This commit is contained in:
GinMu 2017-10-14 16:28:16 +08:00
parent 9734f45ec8
commit dab067e71f

View File

@ -111,10 +111,7 @@ export default function AppRun($rootScope, $window, $injector, $location, $log,
} }
} }
} else { } else {
if (publicId && publicId.length > 0) { if (to.module === 'private') {
evt.preventDefault();
reloadUserFromPublicId();
} else if (to.module === 'private') {
evt.preventDefault(); evt.preventDefault();
if (to.url === '/home' || to.url === '/') { if (to.url === '/home' || to.url === '/') {
$state.go('login', params); $state.go('login', params);