F cyclic dependency

This commit is contained in:
zhenorzz 2021-08-27 23:15:55 +08:00
parent c5039558c4
commit 52d292ea7c
3 changed files with 4389 additions and 5 deletions

4385
web/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,7 @@
"sass": "^1.32.12",
"typescript": "^4.2.4",
"vconsole": "^3.6.1",
"vite": "^2.2.3",
"vite": "^2.5.0",
"vite-plugin-svg-icons": "^0.5.0",
"vue-tsc": "^0.0.24"
}

View File

@ -1,7 +1,7 @@
import axios, { AxiosResponse, AxiosRequestConfig, AxiosError } from 'axios'
import { ElMessageBox, ElMessage } from 'element-plus'
import { removeNamespaceIdCookie } from '@/utils/namespace'
import store from '@/store'
import { logout } from '@/utils/auth'
// create an axios instance
const service = axios.create({
@ -43,9 +43,8 @@ service.interceptors.response.use(
cancelButtonText: 'Cancel',
type: 'warning',
}).then(() => {
store.dispatch('user/logout').then(() => {
location.reload()
})
logout()
location.reload()
})
return Promise.reject(res.message)
} else if (10002 === res.code) {