mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-04 04:59:58 +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",
|
"sass": "^1.32.12",
|
||||||
"typescript": "^4.2.4",
|
"typescript": "^4.2.4",
|
||||||
"vconsole": "^3.6.1",
|
"vconsole": "^3.6.1",
|
||||||
"vite": "^2.2.3",
|
"vite": "^2.5.0",
|
||||||
"vite-plugin-svg-icons": "^0.5.0",
|
"vite-plugin-svg-icons": "^0.5.0",
|
||||||
"vue-tsc": "^0.0.24"
|
"vue-tsc": "^0.0.24"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import axios, { AxiosResponse, AxiosRequestConfig, AxiosError } from 'axios'
|
import axios, { AxiosResponse, AxiosRequestConfig, AxiosError } from 'axios'
|
||||||
import { ElMessageBox, ElMessage } from 'element-plus'
|
import { ElMessageBox, ElMessage } from 'element-plus'
|
||||||
import { removeNamespaceIdCookie } from '@/utils/namespace'
|
import { removeNamespaceIdCookie } from '@/utils/namespace'
|
||||||
import store from '@/store'
|
import { logout } from '@/utils/auth'
|
||||||
|
|
||||||
// create an axios instance
|
// create an axios instance
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
@ -43,9 +43,8 @@ service.interceptors.response.use(
|
|||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: 'Cancel',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
store.dispatch('user/logout').then(() => {
|
logout()
|
||||||
location.reload()
|
location.reload()
|
||||||
})
|
|
||||||
})
|
})
|
||||||
return Promise.reject(res.message)
|
return Promise.reject(res.message)
|
||||||
} else if (10002 === res.code) {
|
} else if (10002 === res.code) {
|
||||||
|
Loading…
Reference in New Issue
Block a user