This commit is contained in:
tcy
2025-08-20 19:40:16 +08:00
parent c61582c631
commit 314903104c
2 changed files with 6 additions and 10 deletions

View File

@ -308,20 +308,13 @@ const uploadedSuccessfully = (res: any) => {
emit('update:modelValue', listToString(fileList.value));
proxy?.$modal.closeLoading();
}
<<<<<<< Updated upstream
if (props.autoUpload && props.limit === fileList.value.length) {
fileUploadRef.value?.clearFiles();
fileList.value = [];
emit('update:modelValue', ''); // 同步到外部 v-model
}
=======
// if (props.autoUpload && props.limit === fileList.value.length) {
// fileUploadRef.value?.clearFiles();
// fileList.value = [];
// emit('update:modelValue', ''); // 同步到外部 v-model
// }
>>>>>>> Stashed changes
props.onUploadSuccess?.(fileList.value, res);
};