fix: 修改响应拦截返回值
This commit is contained in:
parent
3ffd1d102c
commit
2924522f77
|
@ -44,7 +44,8 @@ const install = (Vue, vm) => {
|
|||
Vue.prototype.$u.http.interceptor.response = (res) => {
|
||||
uni.hideLoading();
|
||||
if (res.succeed == true || res.success == true) {
|
||||
return res.data || res;
|
||||
// return res.data || res;
|
||||
return res;
|
||||
} else {
|
||||
// uni.showToast({
|
||||
// title: res.error,
|
||||
|
|
Loading…
Reference in New Issue