登录后默认进入总体概况页
- 将 Zustand 默认 activeModule 从 workspace 调整为 dashboard,登录后默认展示总体概况页。 - 同步测试 resetStore 的默认模块,避免测试环境与真实默认入口不一致。 - 补充 useStore 默认模块回归测试,固定 dashboard 初始入口行为。 - 更新 AGENTS 和前端实现文档,记录登录后的默认模块。
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
## 前端模块切换
|
||||
|
||||
`App.tsx` 使用 Zustand 中的 `activeModule` 做模块切换,没有使用路由库。
|
||||
`useStore` 默认 `activeModule` 为 `dashboard`,因此用户登录后默认进入“总体概况”页。
|
||||
|
||||
| activeModule | 组件 | 页面 |
|
||||
|--------------|------|------|
|
||||
|
||||
Reference in New Issue
Block a user