解决登录显示、首页显示bug
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(options: any) {
|
||||
async onLoad(options: any) {
|
||||
if (options['user_id']) {
|
||||
this.userId = String(options['user_id'])
|
||||
} else if (options.user_id) {
|
||||
@@ -124,6 +124,11 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
async ensureMerchantAuth(): Promise<boolean> {
|
||||
const result = await requireMerchantAuth({ redirectOnFail: true, toastOnFail: true })
|
||||
return result.ok
|
||||
},
|
||||
|
||||
async openProductSelect() {
|
||||
this.showProductSelect = true
|
||||
if (this.allProducts.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user