This commit is contained in:
aihe 2024-08-09 20:50:36 +08:00
parent 50793554fe
commit 9f25d39ddf
2 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,7 @@
async handleLoginedBack() {
await promiseTimeout(300)
await this.$store.dispatch(USERKEY.GETUSERINFO)
this.lgDialog.show = false
// showToast("登录成功")
this.reloadCurrentPage(this) // 刷新当前页面
},

View File

@ -128,7 +128,7 @@
let lg = await uniPromiseApi('login', {})
let code = lg.res.code
this.submitLogin.code = code
let res = await apiService.loginByMP(this.submitLogin)
let res = await apiService.loginByMP({ ...this.submitLogin, _loading: true })
token = res.token
this.token = token
}catch(e){
@ -138,7 +138,7 @@
return token
},
async getPhoneNumber(e){
let bPhoneRes = await apiService.bindPhone(e?.detail || {}, this.commodHeaders())
let bPhoneRes = await apiService.bindPhone({ ...(e?.detail || {}), _loading: true }, this.commodHeaders())
this.submitLogin.phoneNumber = bPhoneRes.phone
},
handleNicknamereview(e){