Skip to content

Commit 2fa98de

Browse files
yuanwjsendya
authored andcommitted
移除store引用
1 parent ca5e398 commit 2fa98de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/request.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import axios from 'axios'
2-
import store from '@/store'
32
import storage from 'store'
43
import notification from 'ant-design-vue/es/notification'
54
import { VueAxios } from './axios'
@@ -30,7 +29,7 @@ const errorHandler = (error) => {
3029
description: 'Authorization verification failed'
3130
})
3231
if (token) {
33-
store.dispatch('Logout').then(() => {
32+
this.$store.dispatch('Logout').then(() => {
3433
setTimeout(() => {
3534
window.location.reload()
3635
}, 1500)

0 commit comments

Comments
 (0)