Files
ylhp-ai-project-manager-fro…/mock/login.ts
JiaoTianBo ac4d43fd01
Some checks failed
Lint Code / Lint Code (push) Failing after 1m34s
feat(sse): 集成服务器推送事件实现异步任务进度推送
- 新增SSE客户端类,实现基于fetch API的事件流连接和自动重连
- 增加sse状态管理Pinia模块,支持连接管理、任务进度和状态跟踪
- 登录状态管理增加userId字段,完善用户信息结构
- 登录接口修改,支持接收和存储用户ID、角色和权限信息
- 登录mock禁用,切换为真实后端接口调用
- 主布局组件增加SSE连接初始化与关闭生命周期钩子
- 项目创建向导中改用SSE方式上传文件及监听解析进度和结果
- 文件上传界面增加上传及任务进度展示,包括状态提示和进度条
- token处理函数更新,支持后端多种token字段并正确存储用户信息
- 调整本地存储结构,适应新增的用户ID和权限字段管理
2026-03-28 17:24:29 +08:00

6 lines
185 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 根据角色动态生成路由
import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 禁用登录 mock使用真实后端接口
export default defineFakeRoute([]);