mirror of https://gitee.com/xiaonuobase/snowy
用户token过期会出现2个弹框,果断去掉右上角那个,以免误解
parent
71f28cbd29
commit
efb8955a63
|
@ -30,10 +30,6 @@ const err = (error) => {
|
|||
}
|
||||
}
|
||||
if (error.response.status === 401 && !(data.result && data.result.isLogin)) {
|
||||
notification.error({
|
||||
message: 'Unauthorized',
|
||||
description: 'Authorization verification failed'
|
||||
})
|
||||
if (token) {
|
||||
store.dispatch('Logout').then(() => {
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in New Issue