用户token过期会出现2个弹框,果断去掉右上角那个,以免误解

pull/25/head
小诺 2021-11-15 15:15:38 +00:00 committed by Gitee
parent 71f28cbd29
commit efb8955a63
1 changed files with 0 additions and 4 deletions

View File

@ -30,10 +30,6 @@ const err = (error) => {
} }
} }
if (error.response.status === 401 && !(data.result && data.result.isLogin)) { if (error.response.status === 401 && !(data.result && data.result.isLogin)) {
notification.error({
message: 'Unauthorized',
description: 'Authorization verification failed'
})
if (token) { if (token) {
store.dispatch('Logout').then(() => { store.dispatch('Logout').then(() => {
setTimeout(() => { setTimeout(() => {