fix: 修复新建项目无响应问题

- 替换 prompt() 为 InputDialog Vue 模态组件
- 替换 alert()/confirm() 为 Electron showMessageBox IPC
- 添加 dialog:showMessage / dialog:showConfirm IPC 通道
This commit is contained in:
gmh01
2026-07-23 19:44:04 +08:00
parent 95116e2338
commit 686d94e178
7 changed files with 180 additions and 14 deletions

View File

@@ -74,7 +74,11 @@ async function importFromFiles() {
}
async function handleDelete(relativePath) {
if (confirm(`确定删除 "${relativePath}"`)) {
const ok = await window.api.dialog.showConfirm({
title: '删除确认',
message: `确定要删除 "${relativePath}" 吗?`
})
if (ok) {
await store.removeFile(relativePath)
}
}