This commit is contained in:
kailong321200875
2023-11-30 09:46:28 +08:00
parent 893459da7c
commit c8400abd9f
10 changed files with 39 additions and 72 deletions

View File

@@ -6,7 +6,7 @@ import {
} from './types'
import { ElMessage } from 'element-plus'
import qs from 'qs'
// import router from '@/router'
import router from '@/router'
import { useStorage } from '@/hooks/web/useStorage'
@@ -75,8 +75,7 @@ const defaultResponseInterceptors = (response: AxiosResponse<any>) => {
if (response?.data?.code === 401) {
// token过期
clear()
window.location.reload()
// router.push('/login')
router.push('/login')
}
}
}