This commit is contained in:
Gdpao
2020-08-07 19:56:47 +08:00
parent 71e984b2ed
commit 502e020000
17 changed files with 238 additions and 136 deletions

View File

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