✨ ERP:初始化其它入库的表单 40%

This commit is contained in:
YunaiV committed 2024-02-06 12:44:39 +08:00
1 parent d92404f351
commit 53c94af027
4 files changed
+168 -92

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ const emitUpdateModelValue = () => {
// 情况1:数组结果
let result: string | string[] = fileList.value.map((file) => file.url!)
// 情况2:逗号分隔的字符串
if (isString(props.modelValue)) {
if (props.limit === 1 || isString(props.modelValue)) {
result = result.join(',')
}
emit('update:modelValue', result)