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

pull/320/MERGE
RuoYi 2 years ago
parent 81a8192de7
commit 49e6fbf2ff

@ -127,7 +127,13 @@ export default {
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 {
//

Loading…
Cancel
Save