Commit 1f22dadf authored by 张伯涛's avatar 张伯涛

根据路径判断是不是平面图详情

parent 34cca976
......@@ -2,12 +2,12 @@
<div v-if="!item.hidden">
<template v-if="item.showFather !== 'true' && hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow">
<!-- 如果点击菜单是平面图详情则打开一个新的浏览器页面 target="_blank"-->
<app-link v-if="onlyOneChild.meta && onlyOneChild.path === '/template/planeGraphDetails'" :to="resolvePath(onlyOneChild.path)" target="_blank">
<app-link v-if="onlyOneChild.meta && basePath === '/template/planeGraphDetails'" :to="resolvePath(onlyOneChild.path)" target="_blank">
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
<item :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
</el-menu-item>
</app-link>
<app-link v-if="onlyOneChild.meta && onlyOneChild.path !== '/template/planeGraphDetails'" :to="resolvePath(onlyOneChild.path)">
<app-link v-if="onlyOneChild.meta && basePath !== '/template/planeGraphDetails'" :to="resolvePath(onlyOneChild.path)">
<el-menu-item :index="resolvePath(onlyOneChild.path)" :class="{'submenu-title-noDropdown':!isNest}">
<item :icon="onlyOneChild.meta.icon||(item.meta&&item.meta.icon)" :title="onlyOneChild.meta.title" />
</el-menu-item>
......@@ -84,7 +84,6 @@ export default {
this.onlyOneChild = { ... parent, path: '', noShowingChildren: true }
return true
}
return false
},
resolvePath(routePath) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment