@@ -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();