主子表:确认列表编辑的支持组件情况

This commit is contained in:
YunaiV
2023-11-10 23:01:36 +08:00
parent 9f9e0f8bda
commit 55f6e4ca25
2 changed files with 66 additions and 4 deletions

View File

@ -144,6 +144,8 @@ watch(
} else if (isArray(props.modelValue)) {
// 情况2字符串
files.concat(props.modelValue)
} else if (props.modelValue === undefined) {
// 情况3undefined 不处理
} else {
throw new Error('不支持的 modelValue 类型')
}