Compare commits

..

No commits in common. "b9e45dd82c8a8e848e507a46623fb50b90aa9a5b" and "f5b945be0dfd6a7714e4d02c6edb0d741a8bbabd" have entirely different histories.

1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import { Notification, MessageBox, Message } from "element-ui";
// 第三方插件 // 第三方插件
import "element-ui/lib/theme-chalk/index.css"; import "element-ui/lib/theme-chalk/index.css";
import {getToken} from "../main";
Vue.prototype.$axios = axios; Vue.prototype.$axios = axios;
// 字体图标 // 字体图标
@ -37,7 +38,7 @@ service.interceptors.response.use(
rsp => { rsp => {
let data = rsp.data let data = rsp.data
if (data.code === 401){ if (data.code === 401){
localStorage.clear() getToken()
} }
if (data.code === 1000){ if (data.code === 1000){
return data return data