mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
1 parent
73889edefb
commit
b06df462ea
3 files changed
+10
-5
No files matched your search
@@ -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(() => {});
|
||||
|
||||
Reference in new issue
Block a user