Update upload.js

peiyanni 3 years ago
parent 1deeca3103
commit 8d3c5abece

@ -1,6 +1,6 @@
import axios from 'axios'; import axios from 'axios';
import { Message, MessageBox } from 'element-ui'; import { Message, MessageBox } from 'element-ui';
import { setItem, getItem, delItem } from '@/utils/storage'; import { delItem } from '@/utils/storage';
axios.defaults.baseURL = process.env.BASE_API axios.defaults.baseURL = process.env.BASE_API
// axios.defaults.baseURL = 'http://10.108.12.23:8080' // 德明本地 // axios.defaults.baseURL = 'http://10.108.12.23:8080' // 德明本地
@ -33,7 +33,6 @@ service.interceptors.response.use(
console.log(1) console.log(1)
sessionStorage.clear(); sessionStorage.clear();
localStorage.clear(); localStorage.clear();
delItem('token')
// location.reload(); // location.reload();
window.location.href = "/"; window.location.href = "/";
}).catch(err => { }).catch(err => {

Loading…
Cancel
Save