fix(修复问题): 修复保存边界并统一工具图标
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-19 09:07:51 +08:00
1 parent 73889edefb
commit b06df462ea
3 files changed
+10 -5

No files matched your search

+4
View File
@@ -8714,6 +8714,10 @@ async function exportFile(whole, indices = null, value = el.exportFormat.value,
const writer = await file.createWritable();
try {
await writer.write(result.blob);
if (destination?.saveStamp) {
const current = await file.getFile();
if (current.size !== destination.saveStamp.size || current.lastModified !== destination.saveStamp.modified) throw new Error("文件已被修改,请另存");
}
await writer.close();
} catch (error) {
await writer.abort().catch(() => {});