fix(security): 越权/健壮性修复(子模块 + guide keep-alive name 唯一性说明)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
207ccd1547
commit
9a5e0edfcb
@ -271,7 +271,7 @@ meta:
|
|||||||
```
|
```
|
||||||
- 菜单从后端 `GET /auth/menus` 拉取(超管=全部启用菜单,普通用户=角色可访问菜单+祖先),存 `menu` store。
|
- 菜单从后端 `GET /auth/menus` 拉取(超管=全部启用菜单,普通用户=角色可访问菜单+祖先),存 `menu` store。
|
||||||
- 页签存 `tabs` store,登出/401 清空。
|
- 页签存 `tabs` store,登出/401 清空。
|
||||||
- **多页签 keep-alive**:布局用 `<keep-alive :include>` 缓存打开页签的组件,切换保留状态、关闭销毁;页面默认缓存,在 `<route>` 里声明 `meta.keepAlive: false` 可关闭。**每个菜单页面须 `defineOptions({ name })`**(name = 路径末段,如 `user`/`login-log`/`dashboard`),作为缓存标识。
|
- **多页签 keep-alive**:布局用 `<keep-alive :include>` 缓存打开页签的组件,切换保留状态、关闭销毁;页面默认缓存,在 `<route>` 里声明 `meta.keepAlive: false` 可关闭。**每个菜单页面须 `defineOptions({ name })`**(name = 路径末段,如 `user`/`login-log`/`dashboard`),作为缓存标识;**name 须与路径末段一致且全局唯一**(避免未来同末段路径互相影响 keep-alive)。
|
||||||
|
|
||||||
### 3.5 样式:UnoCSS @apply
|
### 3.5 样式:UnoCSS @apply
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 8eefa7fa4499ed9b3c733211794360fad26061b4
|
Subproject commit 477f35293e5e87ec904bcc7bceb8d1e37d19cffe
|
||||||
Loading…
x
Reference in New Issue
Block a user