优化问题

This commit is contained in:
duan
2024-07-19 18:23:38 +08:00
parent 7a3f337eb8
commit 2f182c9b39
3 changed files with 21 additions and 6 deletions

View File

@@ -25,9 +25,9 @@
success: (data) => {
uni.getUserInfo({
provider: 'weixin',
success: (infoRes) => {
success: async (infoRes) => {
uni.cache.set('weixincode', data.code);
let res = this.api.userwxlogin({
let res = await this.api.userwxlogin({
code: uni.cache.get('weixincode'), //临时登录凭证
rawData: infoRes.rawData,
})