fix:【antd】【mall】优化修复 spu-and-sku-list 选择器

This commit is contained in:
puhui999
2025-11-26 16:34:14 +08:00
parent ea57b64795
commit 0ded54872b
2 changed files with 1 additions and 8 deletions

View File

@@ -25,7 +25,6 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: 'required',
},
// TODO @puhui999商品的选择上面 spuId 可以选择了,下面的 skuId 打开后,没商品。
{
fieldName: 'skuId',
label: '商品规格',

View File

@@ -45,13 +45,7 @@ const expandRowKeys = ref<string[]>([]); // 控制展开行需要设置 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) => {