在资产编辑和SKU对话框中新增dictType字段支持,确保自定义属性的字典类型信息在请求体中正确传递和保存
This commit is contained in:
@@ -469,6 +469,7 @@ interface CategoryAttr {
|
||||
type: string;
|
||||
options?: { label: string; value: string }[];
|
||||
required?: boolean;
|
||||
dictType?: string;
|
||||
}
|
||||
|
||||
interface KeyValuePair {
|
||||
@@ -1158,6 +1159,7 @@ const buildRequestBody = async (): Promise<any> => {
|
||||
name: attr.name,
|
||||
type: attr.type,
|
||||
value: value,
|
||||
...(attr.dictType ? { dictType: attr.dictType } : {}),
|
||||
};
|
||||
|
||||
// 只有单选和多选类型才传递 options,且只传递选中的值对应的选项
|
||||
|
||||
Reference in New Issue
Block a user