From 7c0154d39ff3424f49cb93be950ad0aecedee598 Mon Sep 17 00:00:00 2001 From: aeoform <2790848120@qq.com> Date: Sun, 19 Jul 2026 12:09:24 +0800 Subject: [PATCH 1/7] =?UTF-8?q?fix(history):=20=E9=9F=B3=E9=A2=91=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E6=94=B9=E7=94=A8=20Blob=20URL=20+=20=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E8=B5=B0=20Tauri=20dialog=20save?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/src-tauri/src/commands/history.rs | 42 +++++++--- openless-all/app/src-tauri/src/lib.rs | 2 + openless-all/app/src-tauri/tauri.conf.json | 1 + openless-all/app/src/i18n/en.ts | 1 + openless-all/app/src/i18n/ja.ts | 1 + openless-all/app/src/i18n/ko.ts | 1 + openless-all/app/src/i18n/zh-CN.ts | 1 + openless-all/app/src/i18n/zh-TW.ts | 1 + openless-all/app/src/lib/ipc/history.ts | 17 ++-- openless-all/app/src/pages/History.tsx | 82 ++++++++++++------- 10 files changed, 98 insertions(+), 51 deletions(-) diff --git a/openless-all/app/src-tauri/src/commands/history.rs b/openless-all/app/src-tauri/src/commands/history.rs index 642d4cf2e..d68abd1b1 100644 --- a/openless-all/app/src-tauri/src/commands/history.rs +++ b/openless-all/app/src-tauri/src/commands/history.rs @@ -37,28 +37,48 @@ pub fn get_activity_stats(coord: CoordinatorState<'_>) -> Vec { /// session_id 在仓库内由 `Uuid::new_v4()` 生成 (`dictation.rs:1531`),前端只会回传 /// 自己列出的合法 id,但 IPC = boundary,按 boundary 规则严格校验。 /// -/// async fs:单条 5 分钟 wav 约 9.6MB,同步 `std::fs::read` 会阻塞 Tauri IPC 主循环。 -/// 改 `tokio::fs::read` 后让出线程给其它 IPC。 +/// 读取录音文件的 data URL(base64),前端 `