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

(cherry picked from commit 55f6e4ca25)
This commit is contained in:
YunaiV
2023-11-10 23:01:36 +08:00
committed by shizhong
parent 7613a3b454
commit e7886a1224
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 类型')
}