From 2b485de5a85a261286158ed91835f8d206b01425 Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Tue, 24 Feb 2026 16:38:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(@vben/web-antd):=20=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=A7=BB=E9=99=A4=E7=B1=BB=E5=9E=8B=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=B9=B6=E5=81=9C=E6=AD=A2=E6=8F=90=E4=BA=A4kind?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/product/index.ts | 2 +- .../product-detail-page/data-actions.ts | 1 - .../src/views/product/detail/index.vue | 34 ------------------- 3 files changed, 1 insertion(+), 36 deletions(-) diff --git a/apps/web-antd/src/api/product/index.ts b/apps/web-antd/src/api/product/index.ts index 7d42e09..498fd42 100644 --- a/apps/web-antd/src/api/product/index.ts +++ b/apps/web-antd/src/api/product/index.ts @@ -232,7 +232,7 @@ export interface SaveProductDto { id?: string; imageUrls?: string[]; labelIds?: string[]; - kind: ProductKind; + kind?: ProductKind; name: string; originalPrice: null | number; packingFee?: null | number; diff --git a/apps/web-antd/src/views/product/detail/composables/product-detail-page/data-actions.ts b/apps/web-antd/src/views/product/detail/composables/product-detail-page/data-actions.ts index ce9a2b9..865870b 100644 --- a/apps/web-antd/src/views/product/detail/composables/product-detail-page/data-actions.ts +++ b/apps/web-antd/src/views/product/detail/composables/product-detail-page/data-actions.ts @@ -357,7 +357,6 @@ export function createProductDetailDataActions( id: form.id, storeId: storeId.value, categoryId: form.categoryId, - kind: form.kind, name: form.name.trim(), subtitle: form.subtitle.trim(), description: form.description.trim(), diff --git a/apps/web-antd/src/views/product/detail/index.vue b/apps/web-antd/src/views/product/detail/index.vue index 82e1cc5..53593b8 100644 --- a/apps/web-antd/src/views/product/detail/index.vue +++ b/apps/web-antd/src/views/product/detail/index.vue @@ -175,16 +175,6 @@ function updateActiveSectionByScroll() { activeSectionId.value = current; } -function onKindChange(value: unknown) { - if (value !== 'single' && value !== 'combo') return; - form.kind = value; - if (value === 'single') { - form.comboGroups = []; - } else if (form.comboGroups.length === 0) { - addComboGroup(); - } -} - function formatPrice(value: null | number | string | undefined) { return `¥${Number(value || 0).toFixed(2)}`; } @@ -781,30 +771,6 @@ watch( -
- -
-
- - -
-
-
-