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( -
- -
-
- - -
-
-
-