feat(h5): confidence gate + triage + image uploader + ws composable

新增 ConfidenceGateBanner/ImageUploader/TriageCard 组件与 useConfidenceGate; useH5WebSocket 增强; 对话/API 适配。
This commit is contained in:
Simon
2026-07-09 11:49:50 +08:00
parent 5e53146a9a
commit 12d89dfb35
18 changed files with 1712 additions and 20 deletions
+4 -1
View File
@@ -35,7 +35,10 @@ export default defineConfig({
// API 代理:将 /api 请求转发到后端
proxy: {
'/api': {
target: 'http://localhost:8000',
// 开发代理目标:默认 localhost:8000(宿主机本地直跑后端);
// Docker 化 dev 栈中前端容器内的 localhost 不是后端,需用 compose 服务名 backend:8000。
// 通过 VITE_PROXY_TARGET 注入,避免写死导致容器内 502/ECONNREFUSED。
target: process.env.VITE_PROXY_TARGET || 'http://localhost:8000',
changeOrigin: true,
// 本地开发剥离 /api 前缀,因为后端路由不包含 /api(生产 nginx 负责剥离)
rewrite: (path) => path.replace(/^\/api/, ''),