Browse Source

登陆失败处理

zhulizhen1111 5 years ago
parent
commit
6e30475d6d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/framework/layout/layout-store.js

+ 2 - 0
src/framework/layout/layout-store.js

@@ -1,6 +1,7 @@
 import frameworkApi from '@/api/framework'
 import storage from '@/framework/utils/storage'
 import axios from 'axios'
+import authutils from '../../utils/authutils'
 
 const KEY_MENU_SELECTED = 'menu_selected'
 const KEY_PROJECT_SELECTED = 'global_project_selected'
@@ -90,6 +91,7 @@ export default {
                         }
                     } else {
                         state.userInfo = null
+                        authutils.toLoginPage()
                     }
                     resolve(resp)
                 })