This commit is contained in:
孟帅
2023-09-06 17:28:16 +08:00
parent 9fa670e5c3
commit 5670aa9c82
22 changed files with 156 additions and 127 deletions

View File

@@ -72,7 +72,7 @@
watch(
() => props.value,
async () => {
if (props.value === 0) {
if (!props.value || props.value === 0) {
valueLabel.value = null;
return;
}

View File

@@ -226,7 +226,11 @@
'When the file picker is currently in multiple-file mode, but the passed value is not of type string array, there may be potential issues.'
);
}
fileList.value = value as string[];
if (!value) {
fileList.value = [];
} else {
fileList.value = value as string[];
}
}
}