修改 #131

Merged
theluyuan merged 2 commits from xbx into master 2020-08-07 10:05:03 +00:00
Showing only changes of commit 07e1661a18 - Show all commits

View File

@ -65,13 +65,13 @@ const install = (Vue, vm) => {
}) })
} }
return false; return false;
} else if (res.errCode == 1) { } else if (res.data.errCode == 1) {
// console.log(res.message); // console.log(res.message);
return res; return res.data;
} else { } else {
// 如果返回false则会调用Promise的reject回调 // 如果返回false则会调用Promise的reject回调
// 并将进入this.$u.post(url).then().catch(res=>{})的catch回调中res为服务端的返回值 // 并将进入this.$u.post(url).then().catch(res=>{})的catch回调中res为服务端的返回值
return res; return res.data;
} }
} }