clay : 添加签名,评分两个组件 #26

Merged
clay merged 1 commits from master into pro 2023-02-25 14:07:46 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 318e54f53f - Show all commits

View File

@ -5,7 +5,6 @@ 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;
// 字体图标 // 字体图标
@ -38,7 +37,7 @@ service.interceptors.response.use(
rsp => { rsp => {
let data = rsp.data let data = rsp.data
if (data.code === 401){ if (data.code === 401){
getToken() localStorage.clear()
} }
if (data.code === 1000){ if (data.code === 1000){
return data return data