We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca5e398 commit 2fa98deCopy full SHA for 2fa98de
src/utils/request.js
@@ -1,5 +1,4 @@
1
import axios from 'axios'
2
-import store from '@/store'
3
import storage from 'store'
4
import notification from 'ant-design-vue/es/notification'
5
import { VueAxios } from './axios'
@@ -30,7 +29,7 @@ const errorHandler = (error) => {
30
29
description: 'Authorization verification failed'
31
})
32
if (token) {
33
- store.dispatch('Logout').then(() => {
+ this.$store.dispatch('Logout').then(() => {
34
setTimeout(() => {
35
window.location.reload()
36
}, 1500)
0 commit comments