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