Merge pull request '修改' (#131) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/131
This commit is contained in:
commit
a0cb2a668e
@ -65,13 +65,13 @@ const install = (Vue, vm) => {
|
||||
})
|
||||
}
|
||||
return false;
|
||||
} else if (res.errCode == 1) {
|
||||
} else if (res.data.errCode == 1) {
|
||||
// console.log(res.message);
|
||||
return res;
|
||||
return res.data;
|
||||
} else {
|
||||
// 如果返回false,则会调用Promise的reject回调,
|
||||
// 并将进入this.$u.post(url).then().catch(res=>{})的catch回调中,res为服务端的返回值
|
||||
return res;
|
||||
return res.data;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user