Compare commits
No commits in common. "b9e45dd82c8a8e848e507a46623fb50b90aa9a5b" and "f5b945be0dfd6a7714e4d02c6edb0d741a8bbabd" have entirely different histories.
b9e45dd82c
...
f5b945be0d
|
|
@ -5,6 +5,7 @@ import { Notification, MessageBox, Message } from "element-ui";
|
|||
|
||||
// 第三方插件
|
||||
import "element-ui/lib/theme-chalk/index.css";
|
||||
import {getToken} from "../main";
|
||||
|
||||
Vue.prototype.$axios = axios;
|
||||
// 字体图标
|
||||
|
|
@ -37,7 +38,7 @@ service.interceptors.response.use(
|
|||
rsp => {
|
||||
let data = rsp.data
|
||||
if (data.code === 401){
|
||||
localStorage.clear()
|
||||
getToken()
|
||||
}
|
||||
if (data.code === 1000){
|
||||
return data
|
||||
|
|
|
|||
Loading…
Reference in New Issue