RuoYi
2023-04-11 6ad345331d1bced7b402d686867c02cad1747d00
修复开启TopNav后一级菜单路由参数设置无效问题(I6T1DK)
已修改1个文件
8 ■■■■ 文件已修改
ruoyi-ui/src/components/TopNav/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/components/TopNav/index.vue
@@ -127,7 +127,13 @@
        window.open(key, "_blank");
      } else if (!route || !route.children) {
        // 没有子路由路径内部打开
        this.$router.push({ path: key });
        const routeMenu = this.childrenMenus.find(item => item.path === key);
        if (routeMenu && routeMenu.query) {
          let query = JSON.parse(routeMenu.query);
          this.$router.push({ path: key, query: query });
        } else {
          this.$router.push({ path: key });
        }
        this.$store.dispatch('app/toggleSideBarHide', true);
      } else {
        // 显示左侧联动菜单