修复开启TopNav后一级菜单路由参数设置无效问题(I6T1DK)

master
RuoYi 2 years ago
parent 4610953b11
commit 3535b4d67f
  1. 8
      src/components/TopNav/index.vue

@ -121,7 +121,13 @@ function handleSelect(key, keyPath) {
window.open(key, "_blank"); window.open(key, "_blank");
} else if (!route || !route.children) { } else if (!route || !route.children) {
// //
router.push({ path: key }); const routeMenu = childrenMenus.value.find(item => item.path === key);
if (routeMenu && routeMenu.query) {
let query = JSON.parse(routeMenu.query);
router.push({ path: key, query: query });
} else {
router.push({ path: key });
}
appStore.toggleSideBarHide(true); appStore.toggleSideBarHide(true);
} else { } else {
// //

Loading…
Cancel
Save