解决登录显示、首页显示bug

This commit is contained in:
2026-05-19 11:06:46 +08:00
parent 2f7e097e6c
commit 00a859c551
181 changed files with 55329 additions and 998 deletions

View File

@@ -181,6 +181,7 @@ type ReviewType = {
created_at: string
}
import { requireMerchantAuth } from '@/utils/merchantAuth.uts'
export default {
data() {
return {
@@ -212,7 +213,11 @@ export default {
recentReviews: [] as Array<ReviewType>
}
},
onLoad(options: any) {
async onLoad(options: any) {
const authResult = await requireMerchantAuth({ redirectOnFail: true, toastOnFail: true })
if (!authResult.ok) {
return
}
const productId = options.productId as string
if (productId) {
this.loadProductDetail(productId)