解决登录显示、首页显示bug
This commit is contained in:
@@ -308,6 +308,13 @@
|
||||
} else {
|
||||
uni.setNavigationBarTitle({ title: '发布服务' })
|
||||
}
|
||||
|
||||
const authResult = await requireMerchantAuth({ redirectOnFail: true, toastOnFail: true })
|
||||
if (!authResult.ok) {
|
||||
this.merchantId = ''
|
||||
return
|
||||
}
|
||||
this.merchantId = authResult.userInfo != null && authResult.userInfo.id != null ? authResult.userInfo.id : ''
|
||||
this.initMerchantId()
|
||||
|
||||
// ── 先探活,通过后再加载业务数据 ──
|
||||
|
||||
Reference in New Issue
Block a user