This commit is contained in:
张成
2025-11-19 22:26:36 +08:00
parent 3e40ab372b
commit ce7916c097
2 changed files with 17 additions and 5 deletions

View File

@@ -251,7 +251,16 @@ export default {
let menuTree = uiTool.transformTree(menuRows)
this.gridOption.menuData = this.mapTree(menuTree)
this.$store.dispatch('setAuthorityMenus')
// 菜单更新后重新加载权限菜单
const framework = this.$framework || window.framework
if (framework) {
this.$store.dispatch('user/setAuthorityMenus', {
Main: framework.components.Main,
ParentView: framework.components.ParentView,
Page404: framework.pages.Page404,
HomePage: framework.HomePage
})
}
},
async initCol() {