Browse Source

提交打开新页面

master
OUMYYE\Administrator 2 years ago
parent
commit
ba3846d379
  1. 9
      src/layout/components/Aside.vue

9
src/layout/components/Aside.vue

@ -75,11 +75,20 @@ function handleAsideCollapse() {
function handleMenuClick(route) { function handleMenuClick(route) {
if (route.meta.type === "C") { if (route.meta.type === "C") {
console.log(route.name)
if(route.path==='/datascreen'){
const url = router.resolve({path: '/datascreen/'}).href
window.open(url, '_blank')
}else{
router.push({ router.push({
name: route.name, name: route.name,
}); });
return; return;
} }
}
if (route.children && route.children.length) { if (route.children && route.children.length) {
route.meta.isExpand = !route.meta.isExpand; route.meta.isExpand = !route.meta.isExpand;
return; return;

Loading…
Cancel
Save