Browse Source

用户打开页面掉线时跳转至登录页面

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

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

@@ -424,8 +424,10 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 				}
 			}
 			$scope.userInfo = data;
-			if (data == null || !data.uu)
+			if (data == null || !data.uu) {
 				$scope.isAuthed = false;
+				window.location.pathname += 'signin';
+			}
 		});
 		$scope.logout = function() {
 			AuthenticationService.logout().success(function() {