feat(插件): 改用受控表单提交产品任务

This commit is contained in:
cc
2026-08-11 12:34:40 +08:00
parent 82c915d1d7
commit 72e5396e6d
5 changed files with 58 additions and 43 deletions
@@ -119,7 +119,9 @@ function requiredEnum(value, label, options) {
return value;
}
function optionalEnumList(value, label, options) {
const list = value === undefined ? [] : requiredList(value, label);
const list = value === undefined || (Array.isArray(value) && value.length === 0)
? []
: requiredList(value, label);
for (const item of list) requiredEnum(item, label, options);
return [...new Set(list)];
}