impress_asr_input_rust/web
impressionyang 66f4b7e0c4
Some checks are pending
Build Windows GUI / build-windows (push) Waiting to run
Build Windows GUI / release (push) Blocked by required conditions
fix: 增强错误处理,确保异常情况下也能显示页面
后端变更:
- src/app/mod.rs: 窗口 hide() 使用 _ 忽略错误,避免 unwrap() panic

前端变更:
- web/src/components/ErrorBoundary.tsx: 新增错误边界组件,捕获未处理的错误
- web/src/main.tsx: 使用 ErrorBoundary 包裹 App 组件
- web/src/App.tsx: 优化主题加载和监听器的错误处理,确保失败时使用默认主题

错误处理能力:
- 即使 Tauri 命令失败,页面也能正常显示
- 未捕获错误会显示友好的错误页面,提供刷新按钮
- 主题加载失败时自动使用 system 主题降级
- 事件监听器清理更安全,避免异步问题

构建结果:
- Windows 包:dist/impress-asr-windows-x64-20260521_190528.zip
- 文件大小:5.0MB
2026-05-21 19:10:11 +08:00
..
src fix: 增强错误处理,确保异常情况下也能显示页面 2026-05-21 19:10:11 +08:00
index.html 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
package-lock.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
package.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
tsconfig.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
tsconfig.node.json 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00
vite.config.ts 初始提交:Windows 跨平台语音识别应用 2026-05-21 17:58:18 +08:00