删除token

This commit is contained in:
仲么了
2023-12-27 08:52:11 +08:00
parent a439e569cd
commit e1299a5520
2 changed files with 2 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
type: 'error',
message: response.data.msg
})
adminInfo.removeToken()
router.push({ name: 'login' })
return Promise.reject(response.data)
} else {