招标
This commit is contained in:
@ -310,11 +310,11 @@ const uploadedSuccessfully = (res: any) => {
|
||||
emit('update:modelValue', listToString(fileList.value));
|
||||
proxy?.$modal.closeLoading();
|
||||
}
|
||||
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
|
||||
// }
|
||||
props.onUploadSuccess?.(fileList.value, res);
|
||||
};
|
||||
|
||||
@ -359,6 +359,8 @@ const customUpload = async (options: any) => {
|
||||
});
|
||||
handleUploadSuccess(res.data, options.file);
|
||||
} catch (err) {
|
||||
console.log(err, 'err');
|
||||
|
||||
handleUploadError();
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user