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> <template>
<div class="menu-child"> <div class="menu-child">
<template v-for="item in this.menuList"> <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"> <template slot="title">
<span slot="title" :id="item.id">{{item.columnName}}</span> <span slot="title" :id="item.id">{{item.columnName}}</span>
</template> </template>

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

Loading…
Cancel
Save