Commit 08c6a60b authored by Damon's avatar Damon

refactor: http返回

parent f2396170
...@@ -55,7 +55,7 @@ const install = (Vue, vm) => { ...@@ -55,7 +55,7 @@ const install = (Vue, vm) => {
} else { } else {
// 如果返回false,则会调用Promise的reject回调, // 如果返回false,则会调用Promise的reject回调,
vm.$u.toast(data.msg) vm.$u.toast(data.msg)
return false return data.data
} }
} else if (res.statusCode === 401) { } else if (res.statusCode === 401) {
// 登录过期 // 登录过期
......
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