fix: 🐛 修复多图时候传递null报错的bug

修复多图时候传递null报错的bug
This commit is contained in:
Theo
2025-01-15 17:37:33 +08:00
parent 7cb40b93ed
commit 88abfec6aa

View File

@@ -197,7 +197,7 @@ watch(
return;
}
if (modelValue.length <= 0) {
if (!modelValue || modelValue.length <= 0) {
fileList.value = [];
viewFileList.value = [];
valFileList.value = [];