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