Browse Source

退出时,原先location.reload存在bug

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@3066 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
yingp 10 years ago
parent
commit
92e8265bc9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/webapp/resources/js/index/app.js

+ 2 - 2
src/main/webapp/resources/js/index/app.js

@@ -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) {// 切换企业