Commit 99853f79 authored by 李俊赕's avatar 李俊赕

chage-status

parent 8155e5e7
...@@ -86,13 +86,13 @@ const install = (Vue, vm) => { ...@@ -86,13 +86,13 @@ const install = (Vue, vm) => {
switch (code) { switch (code) {
case 1: case 1:
case 0: case 0:
return result; // return result;
case 200: case 200:
return { // return {
data:result, // data:result,
code:code, // code:code,
message:msg // message:msg
}; // };
case 401: case 401:
//需要登录的接口,当token 过期时,清掉本地token,到登录页面 //需要登录的接口,当token 过期时,清掉本地token,到登录页面
// if (!token) { // if (!token) {
...@@ -107,7 +107,7 @@ const install = (Vue, vm) => { ...@@ -107,7 +107,7 @@ const install = (Vue, vm) => {
// return result; // return result;
default: default:
return { return {
data:null, data:result,
code:code, code:code,
message:msg message:msg
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment