fix: 修复导出下载链路(Electron 保存对话框 + 原生文件写入 + revoke 竞态)

This commit is contained in:
root
2026-10-16 13:02:33 +08:00
parent b87e895766
commit 599aa09ab8
15 changed files with 115 additions and 43 deletions
+3 -2
View File
@@ -84,9 +84,10 @@ onMounted(async () => {
await generate()
})
function doExport() {
async function doExport() {
const t = todayStr().replace(/-/g, '')
downloadText('实习工作总结_' + t + '.md', markdown.value)
const p = await downloadText('实习工作总结_' + t + '.md', markdown.value)
showToast(p ? '总结已导出到:' + p : '总结已导出到系统下载目录')
}
async function doCopy() {