dy-dashboard/vault/知识库/工作指南/训练记录/2026-09-01-权限配置单一数据源自动同步.md
2026-10-28 11:14:17 +08:00

12 lines
978 B
Markdown
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.

# 2026-09-01-权限配置单一数据源自动同步
<!-- project: path:/home/gxd/.openclaw/workspace/dy-dashboard -->
### 1. 权限配置改为单一数据源,新增子菜单自动同步
**旭东 → OpenClaw:**
> 希望可以彻底解决,我后续如果有新加子菜单时,自动同步添加到系统设置的权限配置里面
**OpenClaw 响应:**
将权限配置改为单一数据源:后端解析侧边栏 `base.html` 生成权限配置页面列表与菜单树。新增 `PAGE_FEATURES` 操作特征表 + `_sidebar_menu_pages` 解析器;`/api/permissions/pages` 与新增的 `/api/permissions/menu-tree` 接口均由侧边栏自动生成;前端删除硬编码 `_permMenuTree`,改为动态拉取 menu-tree。以后新增子菜单只需在侧边栏添加,权限配置自动同步(解析到 38 个页面、12 个分组)。本地 8.186 重载 HTTP 200,云端部署重启后 service active、本机及公网 HTTPS 均 200。Git 提交 `ee9c3f3`。