mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-16 06:03:44 +08:00
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
watch(
|
||||
() => props.value,
|
||||
async () => {
|
||||
if (props.value === 0) {
|
||||
if (!props.value || props.value === 0) {
|
||||
valueLabel.value = null;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user