From b036e78d85da77bcc88c5aa077e099a4a4609f03 Mon Sep 17 00:00:00 2001 From: Gold_Fish <1343023970@qq.com> Date: 星期一, 30 八月 2021 10:42:49 +0800 Subject: [PATCH] 修改根据userId获取菜单sql --- ruoyi-ui/src/layout/components/Sidebar/index.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Sidebar/index.vue b/ruoyi-ui/src/layout/components/Sidebar/index.vue index 0a87943..9fb23fb 100644 --- a/ruoyi-ui/src/layout/components/Sidebar/index.vue +++ b/ruoyi-ui/src/layout/components/Sidebar/index.vue @@ -13,7 +13,7 @@ mode="vertical" > <sidebar-item - v-for="(route, index) in permission_routes" + v-for="(route, index) in sidebarRouters" :key="route.path + index" :item="route" :base-path="route.path" @@ -33,7 +33,7 @@ components: { SidebarItem, Logo }, computed: { ...mapState(["settings"]), - ...mapGetters(["permission_routes", "sidebar"]), + ...mapGetters(["sidebarRouters", "sidebar"]), activeMenu() { const route = this.$route; const { meta, path } = route; -- Gitblit v1.9.2