后端变更: - src/app/commands.rs: 导入 Emitter trait - src/app/commands.rs: set_theme 命令添加 emit 发送 theme-change 事件 - src/app/commands.rs: select_model_file 改进错误处理和消息提示 前端变更: - web/src/pages/SettingsPage.tsx: 移除模型路径输入框的 onChange (与 readOnly 冲突) - web/src/pages/SettingsPage.tsx: handleSelectModel 添加用户友好的错误提示 - web/src/pages/SettingsPage.tsx: 移除主题按钮的 emoji 图标 修复问题: 1. 主题设置不生效 - set_theme 命令现在发送 theme-change 事件通知前端 2. 模型文件不能选择 - 移除 onChange 冲突,改进错误处理 构建结果: - Windows 包:dist/impress-asr-windows-x64-20260521_194309.zip - 文件大小:5.0MB |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||