Browse Source

修改验证失败跳转的前台实现代码

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@6348 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 9 years ago
parent
commit
569071bbf6
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

@@ -12,8 +12,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
 	    var httpInterceptor = {
 	        'responseError': function(response) {
 	            if (response.status == 401) {// UNAUTHORIZED
-	            	AuthenticationService.redirectSignin();
-	                return $q.reject(response);
+	            	window.location.href = response.data.loginUrl || 'index';
+	            	return $q.reject(response);
 	            }
 	            return $q.reject(response);
 	        }