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

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

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)