master
wangchenguang 2 years ago
parent f8d6680292
commit 485d7407f4
  1. 2
      src/components/menuTree/index.vue
  2. 3
      src/mixins/article/index.js

@ -1,7 +1,7 @@
<template>
<div class="menu-child">
<template v-for="item in this.menuList">
<el-submenu :popper-class="isHome ? 'home-menu-popup' : ''" :class="{active: $route.query.id == item.id}" :key="item.id" :index="String(item.id)" :id="item.id" v-if="item.children && item.children.length">
<el-submenu :popper-class="isHome ? 'home-menu-popup' : ''" :class="{active: $route.query.id == item.id}" :key="item.id" :index="String(item.id)" :id="item.id" v-if="item.children && item.children.length && item.children.find(i=>i.menuVisible !==1)">
<template slot="title">
<span slot="title" :id="item.id">{{item.columnName}}</span>
</template>

@ -20,9 +20,10 @@ export default {
const { typeId,menuVisible } = to
console.log('typeId=>' ,typeId)
console.log('to=>' ,to)
console.log('menuVisible=>' ,menuVisible)
// 跳转链接
if (typeId === 2) {
if ( menuVisible === 1) return
if ( menuVisible === 1 || to.children.find(i=>i.menuVisible ===1)) return
let href = to.linkAddress
const cType = to.connectionType
if (cType !== 2) { // 非站外链接

Loading…
Cancel
Save