|
|
16 hours ago | |
|---|---|---|
| .idea | 1 month ago | |
| artifacts | 16 hours ago | |
| docs | 16 hours ago | |
| prototype | 16 hours ago | |
| src | 16 hours ago | |
| tests | 16 hours ago | |
| web-demos | 16 hours ago | |
| .env.development | 1 month ago | |
| .gitignore | 1 month ago | |
| README.md | 16 hours ago | |
| TEST_REPORT.md | 1 month ago | |
| design-qa.md | 16 hours ago | |
| index.html | 16 hours ago | |
| package.json | 16 hours ago | |
| playwright.config.ts | 16 hours ago | |
| pnpm-lock.yaml | 16 hours ago | |
| tsconfig.json | 1 month ago | |
| tsconfig.node.json | 1 month ago | |
| vite.config.ts | 1 month ago | |
| vitest.config.ts | 16 hours ago |
面向单家医院部署的移动端 Web 智能服务门户 P0。患者可通过语音、文字和图片进入智能分诊挂号、检验检查报告解读、中医舌诊三项演示服务。
首次接手项目请先阅读 开发与联调接手指引,产品与交互决策见 P0 文档集。
# 安装依赖
pnpm install
# 启动开发服务器(默认 http://127.0.0.1:5173)
pnpm dev
# 生产构建
pnpm build
# 预览生产构建
pnpm preview
# 单元测试(Vitest)
pnpm test:unit
# E2E 测试(Playwright,需先安装浏览器)
npx playwright install chromium
pnpm test:e2e
# 全部测试
pnpm test
服务目录会展示医院智能体清单,但 P0 只有以上三项可进入。
| 类别 | 方案 |
|---|---|
| 框架 | Vue 3 (Composition API) |
| 语言 | TypeScript |
| 构建 | Vite 6 |
| 状态管理 | Pinia |
| 单元测试 | Vitest + @vue/test-utils |
| E2E 测试 | Playwright |
| 类型检查 | vue-tsc |
src/
├── portal/ # 当前移动端门户页面、三智能体会话和 P0 状态
├── api/ # 既有 API、鉴权、SSE 和 Mock 卡片基础
├── cards/ # 既有挂号业务卡片
├── chat/ # 既有对话组件
├── layouts/ # 既有桌面终端布局(保留作参考,当前未挂载)
├── state/ # 既有终端状态(当前门户尚未接入)
├── theme/ # 全局设计令牌
├── App.vue # 挂载 PortalApp
└── main.ts # 应用入口
VITE_API_BASE_URL=http://localhost:6040/api/v1
VITE_DEMO_MODE=true
当前 src/portal/ 仍使用前端内置 P0 演示状态。后续联调应通过统一 Agent Gateway 接入,不要让页面组件直接绑定 FastGPT 应用 ID。具体顺序与数据边界见 开发与联调接手指引。