|
@@ -212,7 +212,8 @@
|
|
|
// 点击开始上传
|
|
|
async function handleStartUpload() {
|
|
|
const { maxNumber } = props;
|
|
|
- if ((fileListRef.value.length + props.previewFileList?.length ?? 0) > maxNumber) {
|
|
|
+ // if ((fileListRef.value.length + props.previewFileList?.length ?? 0) > maxNumber) { 下面做了修改
|
|
|
+ if ((fileListRef.value.length ?? 0) > maxNumber) {
|
|
|
return createMessage.warning(t('component.upload.maxNumber', [maxNumber]));
|
|
|
}
|
|
|
try {
|
|
@@ -250,7 +251,6 @@
|
|
|
for (const item of fileListRef.value) {
|
|
|
const { status, responseData } = item;
|
|
|
if (status === UploadResultStatus.SUCCESS && responseData) {
|
|
|
- console.log(`responseData`, responseData);
|
|
|
fileList.push(responseData.result.url);
|
|
|
}
|
|
|
}
|