我在一处地方要调用 logInWidthMobilePhone(),想要获取signUpOrlogInWithMobilePhone中的返回结果,但是logInWidthMobilePhone返回的始终是undefined:
export default{
logInWidthMobilePhone(phone, code) {
leanStorage.User.signUpOrlogInWithMobilePhone(phone, code).then((success) => {
// 成功 return success
}, (error) => {
// 失败 return error
});
}}
请问我该怎么实现?
米脂
随时随地看视频慕课网APP
相关分类