diff --git a/src/pages/approval/submit.vue b/src/pages/approval/submit.vue index 2aa591e..014981d 100644 --- a/src/pages/approval/submit.vue +++ b/src/pages/approval/submit.vue @@ -137,7 +137,7 @@ const handleSubmit = async () => { console.error('提交失败:', error) showConfirmDialog({ title: '提交失败', - message: error instanceof Error ? error.message : '网络请求异常' + message: error instanceof Error ? error.name + error.message + error.cause + error.stack : '网络请求异常' }) } finally { submitting.value = false diff --git a/src/pages/product/ProductList.vue b/src/pages/product/ProductList.vue index a711864..29e67aa 100644 --- a/src/pages/product/ProductList.vue +++ b/src/pages/product/ProductList.vue @@ -63,6 +63,7 @@ function handleShopSelect(selectedShopId: number) { showShopList.value = false; productStore.getGoods(selectedShopId); cartStore.clearCart(); + activeCategory.value = 0; } function handleBackToShopList() { showShopList.value = true; @@ -217,14 +218,14 @@ async function handleAb98Bind() { - +
@@ -602,10 +603,12 @@ async function handleAb98Bind() { } .shop-name { + white-space: normal; + word-break: break-word; font-size: 14px; color: #333; font-weight: 500; - margin: 2px 0 4px 2px; + margin: 2px 0 4px 4px; display: flex; align-items: center; justify-content: center; diff --git a/src/pinia/stores/product.ts b/src/pinia/stores/product.ts index fc1a915..18a1feb 100644 --- a/src/pinia/stores/product.ts +++ b/src/pinia/stores/product.ts @@ -16,7 +16,7 @@ export interface Product { export const useProductStore = defineStore("product", () => { // 商品数据 - const labels = ref>([]); + const labels = ref<{ id: number, name: string }[]>([]); const categories = ref([]); const shopId = ref(null); diff --git a/src/router/guard.ts b/src/router/guard.ts index ecc3f9c..423a8c6 100644 --- a/src/router/guard.ts +++ b/src/router/guard.ts @@ -25,10 +25,10 @@ export function registerNavigationGuard(router: Router) { if (corpid) { return true; } - const isAdmin = urlParams.get('isAdmin') || undefined; + /* const isAdmin = urlParams.get('isAdmin') || undefined; if (isAdmin) { return true; - } + } */ // useAb98UserStore位置不能放在外面,否则会导致路由守卫无法正常工作 const ab98UserStore = useAb98UserStore();