|
|
|
@ -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 { |
|
|
|
|
// 显示左侧联动菜单 |
|
|
|
|