fix(g-sys-dict): 修复checkbox模式下,初值处理异常导致无法正常选择的问题

This commit is contained in:
喵你个汪呀 2025-08-16 10:50:24 +08:00
parent ff06be56b3
commit f344af374b

View File

@ -148,7 +148,7 @@ const trySetMultipleValue = (value: any) => {
console.warn('[g-sys-dict]解析多选值失败, 异常信息:', error);
}
}
} else if (props.multiple && !value) {
} else if ((props.renderAs === 'checkbox' || props.multiple) && !value) {
newValue = [];
}
if (newValue != value) updateValue(newValue);