1
0
mirror of synced 2025-12-07 22:08:16 +08:00

Update request.js

This commit is contained in:
WongBin
2021-07-18 14:28:41 +08:00
parent 8e8824c166
commit 51247df4db

View File

@@ -1,7 +1,6 @@
import axios from 'axios'
import { Message, MessageBox } from 'element-ui'
import store from '../store'
import { delItem } from "@/utils/storage"
import { getToken } from '@/utils/auth'
// 创建axios实例
const service = axios.create({
@@ -39,7 +38,6 @@ service.interceptors.response.use(
type: 'warning'
}
).then(() => {
delItem('token')
sessionStorage.clear()
localStorage.clear()
window.location.href = "/";