style: 将 Unicode 转义序列替换为可读的中文字符

This commit is contained in:
2026-03-02 06:48:32 +08:00
parent 70344bcd98
commit 08e5abe165
6 changed files with 14 additions and 14 deletions

View File

@@ -91,7 +91,7 @@ export function useRecorder({ sendJSON, sendBinary }: UseRecorderOptions) {
abortRef.current = null;
useAppStore
.getState()
.showToast(`\u9ea6\u514b\u98ce\u9519\u8bef: ${(err as Error).message}`);
.showToast(`麦克风错误: ${(err as Error).message}`);
}
}, [initAudio]);

View File

@@ -58,10 +58,10 @@ export function useWebSocket() {
if (msg.text) store.addHistory(msg.text);
break;
case "pasted":
store.showToast("\u2705 \u5df2\u7c98\u8d34");
store.showToast("✅ 已粘贴");
break;
case "error":
store.showToast(`\u274c ${msg.message || "\u9519\u8bef"}`);
store.showToast(` ${msg.message || "错误"}`);
break;
}
} catch {