Browse Source

fix:登录失效重新登录无效

old
wangqing 5 years ago
parent
commit
8ddae95dc7
  1. 5
      src/api/index.js

5
src/api/index.js

@ -77,10 +77,11 @@ api.interceptors.response.use(
confirmButtonText: '重新登录',
cancelButtonText: '取消',
type: 'warning'
}).then(() => { // 重置状态
}).then(() => {
toLogin()
// 重置状态
this.$store.dispatch('global/loginExpired', false).then(() => {
})
toLogin()
}).catch(() => {
})

Loading…
Cancel
Save