Commit e126995b authored by lshan's avatar lshan

lishan

parent 48f6b4ac
...@@ -21,7 +21,7 @@ export class Service { ...@@ -21,7 +21,7 @@ export class Service {
return ret.data; return ret.data;
} }
return ret return ret
}else { }/*else {
if(ret.code === 401){ if(ret.code === 401){
await logoutUser().then(()=>{ await logoutUser().then(()=>{
...@@ -30,7 +30,7 @@ export class Service { ...@@ -30,7 +30,7 @@ export class Service {
} }
Toast.fail(typeof ret.data === "string" ? ret.data : ret.message) Toast.fail(typeof ret.data === "string" ? ret.data : ret.message)
throw new Error(ret.message) throw new Error(ret.message)
} }*/
} }
this.service.get = (...res) => get(...res).then(ret => resolveData(ret.data)).catch(err => { this.service.get = (...res) => get(...res).then(ret => resolveData(ret.data)).catch(err => {
resolveData(err.response.data) resolveData(err.response.data)
......
import validator from 'validator' import validator from 'validator'
import cliboard from "./cliboard" /*import cliboard from "./cliboard"
export default { export default {
install(Vue: any) { install(Vue: any) {
...@@ -10,6 +10,6 @@ export default { ...@@ -10,6 +10,6 @@ export default {
cliboard, cliboard,
} }
} }
} }*/
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