Commit 9098e863 authored by chenqikuai's avatar chenqikuai

fix: 修复退出

parent fdaa6d48
import router from '@/router'
import { getUserMsg } from '@/utils/userMsg'
import { deleteUserMsg, getUserMsg } from '@/utils/userMsg'
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios'
import { Toast } from 'vant'
......@@ -12,7 +12,7 @@ baseAxios.interceptors.response.use(
const ret = baseRet.data as iRet
if ([504, 503].includes(ret.code)) {
Toast.fail(ret.msg)
localStorage.clear()
deleteUserMsg()
router.push({
name: 'Login',
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment