登录后默认进入总体概况页

- 将 Zustand 默认 activeModule 从 workspace 调整为 dashboard,登录后默认展示总体概况页。

- 同步测试 resetStore 的默认模块,避免测试环境与真实默认入口不一致。

- 补充 useStore 默认模块回归测试,固定 dashboard 初始入口行为。

- 更新 AGENTS 和前端实现文档,记录登录后的默认模块。
This commit is contained in:
2026-05-04 03:19:12 +08:00
parent 628bce23e0
commit f558f3b3c7
5 changed files with 8 additions and 3 deletions

View File

@@ -29,6 +29,7 @@
## 前端模块切换
`App.tsx` 使用 Zustand 中的 `activeModule` 做模块切换,没有使用路由库。
`useStore` 默认 `activeModule``dashboard`,因此用户登录后默认进入“总体概况”页。
| activeModule | 组件 | 页面 |
|--------------|------|------|