|
@@ -256,12 +256,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
$scope.userInfo = data;
|
|
$scope.userInfo = data;
|
|
|
if (data == null || !data.userUU) {
|
|
if (data == null || !data.userUU) {
|
|
|
$scope.isAuthed = false;
|
|
$scope.isAuthed = false;
|
|
|
- window.location.pathname += 'signin';
|
|
|
|
|
|
|
+ $window.location.href = BaseService.getRootPath() + "/signin";
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
$scope.logout = function() {
|
|
$scope.logout = function() {
|
|
|
AuthenticationService.logout().success(function() {
|
|
AuthenticationService.logout().success(function() {
|
|
|
- $window.location.reload();
|
|
|
|
|
|
|
+ $window.location.href = BaseService.getRootPath() + "/signin";
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|