finai/frontend/app
shijing 75694b3182 chore: initial commit 2026-07-09 14:26:05 +08:00
..
README.md chore: initial commit 2026-07-09 14:26:05 +08:00
app.js chore: initial commit 2026-07-09 14:26:05 +08:00
index.html chore: initial commit 2026-07-09 14:26:05 +08:00
style.css chore: initial commit 2026-07-09 14:26:05 +08:00

README.md

财务大模型智能问答客服系统前端 MVP

这是一个零构建静态前端,直接对接 code/backend 的 FastAPI 接口。第一版刻意不依赖 npm 包,方便在受限环境里快速打开、联调和演示。

启动

先启动后端:

cd code/backend
python -m uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

再启动前端静态服务:

cd code/frontend
python -m http.server 5173 --bind 127.0.0.1 --directory app

访问:

http://127.0.0.1:5173/index.html

登录

  • API 地址:http://127.0.0.1:8000
  • 默认管理员手机号:13800000000
  • Mock 验证码:123456

页面上的“登录”按钮会直接使用 mock 验证码完成登录。

已实现

  • 登录和当前用户状态。
  • 智能问答工作台。
  • POST + Fetch Stream 方式解析后端 SSE。
  • 会话列表、消息列表、引用来源展示。
  • 知识文档新增与列表。
  • 审计日志和用量统计。
  • API 地址可在左侧面板修改并保存在 localStorage