mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 10:32:25 +00:00
fix:【antd】【mall】优化修复 spu-and-sku-list 选择器
This commit is contained in:
@@ -25,7 +25,6 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
// TODO @puhui999:商品的选择:上面 spuId 可以选择了,下面的 skuId 打开后,没商品。
|
||||
{
|
||||
fieldName: 'skuId',
|
||||
label: '商品规格',
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user