diff --git a/docker-compose.yml b/docker-compose.yml index acbb3c9..55ccdcb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,8 +29,8 @@ services: restart: unless-stopped postgres: - # 阿里云镜像,避免从 Docker Hub 拉取超时 - image: registry.cn-hangzhou.aliyuncs.com/library/postgres:15-alpine + # 轩辕镜像加速,避免 Docker Hub 拉取超时 + image: docker.m.daocloud.io/library/postgres:15-alpine container_name: camtalk-postgres environment: POSTGRES_USER: camtalk diff --git a/frontend/src/components/ChatPanel/index.tsx b/frontend/src/components/ChatPanel/index.tsx index bb30883..41a945c 100644 --- a/frontend/src/components/ChatPanel/index.tsx +++ b/frontend/src/components/ChatPanel/index.tsx @@ -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; diff --git a/frontend/src/lib/errors.ts b/frontend/src/lib/errors.ts index 03f3b24..54b70d8 100644 --- a/frontend/src/lib/errors.ts +++ b/frontend/src/lib/errors.ts @@ -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}`;