修改完成

This commit is contained in:
2026-09-13 19:41:13 +08:00
parent 15b301b358
commit d040507cb8
27 changed files with 2238 additions and 551 deletions
+5 -1
View File
@@ -225,6 +225,7 @@
if (!files.length || !target || redirectUnauthorized(api)) return;
input.disabled = true;
if (root.AttachmentEditor) root.AttachmentEditor.setBusy(target, true);
try {
for (index = 0; index < files.length; index += 1) {
@@ -235,7 +236,9 @@
}
}));
if (!result.ossId) throw new Error('上传响应缺少 ossId');
target.value = mergeUploadTargetValue(target.value, result.ossId, multiple);
if (!root.AttachmentEditor || !root.AttachmentEditor.addUploaded(target, result, files[index])) {
target.value = mergeUploadTargetValue(target.value, result.ossId, multiple);
}
setUploadStatus(status, '', buildUploadStatus(result.fileName || files[index].name, result.ossId));
}
} catch (error) {
@@ -244,6 +247,7 @@
showMessage(isForbidden(error) ? '当前账号无权上传文件。' : (error.message || '上传失败'));
} finally {
input.disabled = false;
if (root.AttachmentEditor) root.AttachmentEditor.setBusy(target, false);
input.value = '';
}
}