Browse Source

退出或认证失败时,改刷新为直接跳转登录界面

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@3083 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
yingp 10 years ago
parent
commit
5ab393384d

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

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

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

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