|
|
@@ -410,7 +410,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
$scope.routeState = routeState || 'home';
|
|
|
});
|
|
|
}]);
|
|
|
- app.controller('AuthCtrl', ['$scope', '$window', 'AuthenticationService', 'toaster', function($scope, $window, AuthenticationService, toaster) {
|
|
|
+ app.controller('AuthCtrl', ['$scope', '$window', 'AuthenticationService', 'toaster', 'BaseService', function($scope, $window, AuthenticationService, toaster, BaseService) {
|
|
|
$scope.isAuthed = AuthenticationService.isAuthed(); //AuthenticationService模块在common/下
|
|
|
$scope.userInfo = {};
|
|
|
AuthenticationService.getAuthentication().success(function(data) {
|
|
|
@@ -435,7 +435,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
});
|
|
|
$scope.logout = function() {
|
|
|
AuthenticationService.logout().success(function() {
|
|
|
- $window.location.reload();
|
|
|
+ $window.location.href = BaseService.getRootPath();
|
|
|
});
|
|
|
};
|
|
|
$scope.switchto = function(enUU) {// 切换企业
|