gdpao
This commit is contained in:
@@ -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为服务端的返回值
|
||||
|
||||
Reference in New Issue
Block a user