mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-03 12:39:44 +08:00
F cyclic dependency
This commit is contained in:
parent
c5039558c4
commit
52d292ea7c
4385
web/package-lock.json
generated
Normal file
4385
web/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user