解决登录显示、首页显示bug
This commit is contained in:
@@ -294,6 +294,7 @@
|
||||
|
||||
<script lang="uts">
|
||||
import supa from '@/components/supadb/aksupainstance.uts'
|
||||
import { requireMerchantAuth } from '@/utils/merchantAuth.uts'
|
||||
|
||||
type OrderItemType = {
|
||||
id: string
|
||||
@@ -511,13 +512,17 @@
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(options: any) {
|
||||
async onLoad(options: any) {
|
||||
let id = ''
|
||||
if (options['id'] != null) {
|
||||
id = options['id'] as string
|
||||
} else if (options.id != null) {
|
||||
id = options.id as string
|
||||
}
|
||||
const authResult = await requireMerchantAuth({ redirectOnFail: true, toastOnFail: true })
|
||||
if (!authResult.ok) {
|
||||
return
|
||||
}
|
||||
if (id !== '') {
|
||||
this.orderId = id
|
||||
this.loadOrderDetail()
|
||||
|
||||
Reference in New Issue
Block a user