From 0ded54872be852a38a204a974eba398e7e5d0e62 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 26 Nov 2025 16:34:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E3=80=90antd=E3=80=91=E3=80=90mall?= =?UTF-8?q?=E3=80=91=E4=BC=98=E5=8C=96=E4=BF=AE=E5=A4=8D=20spu-and-sku-lis?= =?UTF-8?q?t=20=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/mall/product/comment/data.ts | 1 - .../mall/product/spu/components/spu-and-sku-list.vue | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/web-antd/src/views/mall/product/comment/data.ts b/apps/web-antd/src/views/mall/product/comment/data.ts index 223491884..b7e246d47 100644 --- a/apps/web-antd/src/views/mall/product/comment/data.ts +++ b/apps/web-antd/src/views/mall/product/comment/data.ts @@ -25,7 +25,6 @@ export function useFormSchema(): VbenFormSchema[] { }, rules: 'required', }, - // TODO @puhui999:商品的选择:上面 spuId 可以选择了,下面的 skuId 打开后,没商品。 { fieldName: 'skuId', label: '商品规格', diff --git a/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue b/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue index ddc1ab3d8..34580a2f9 100644 --- a/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue +++ b/apps/web-antd/src/views/mall/product/spu/components/spu-and-sku-list.vue @@ -45,13 +45,7 @@ const expandRowKeys = ref([]); // 控制展开行需要设置 row-key function getSkuConfigs(extendedAttribute: string) { // 验证 SKU 数据(如果有 ref 的话) if (skuListRef.value) { - // TODO @puhui999:这里有个 linter 错误; - try { - skuListRef.value.validateSku(); - } catch (error) { - // 验证失败时抛出错误 - throw error; - } + skuListRef.value.validateSku(); } const seckillProducts: unknown[] = []; spuPropertyList.value.forEach((item) => {