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