Merge remote-tracking branch 'origin/develop' into feat/optimize

# Conflicts:
#	frontend/src/lib/errors.ts
This commit is contained in:
2026-06-14 20:40:05 +08:00
3 changed files with 3 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ interface ChatPanelProps {
currentScenario?: string;
isProcessing?: boolean;
isVADReady?: boolean;
vadError?: string;
vadError?: string | null;
isMicOn?: boolean;
isSpeaking?: boolean;
onSendText?: (text: string) => void;

View File

@@ -3,8 +3,6 @@
// 来源docs/03-接口文档.md §五 错误码
// ============================================================
// ErrorCode type reserved for future use
/** 将错误码转为用户友好文案(需要传入翻译函数) */
export function getErrorMessage(code: string, translate: (key: string) => string): string {
const key = `error.${code}`;