Commit b4c5d263 by caoyanzhi

update: 面包屑

parent edf1afe7
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="bread-menu"> <div class="bread-menu">
<span class="bread-menu-item" v-for="(el, index) in menuList" :key="el.menuCode"> <span class="bread-menu-item" v-for="(el, index) in menuList" :key="el.menuCode">
<i v-if="index > 0" class="bread-menu-icon iconfont-hb3 iconnavigate_next"></i> <i v-if="index > 0" class="bread-menu-icon iconfont-hb3 iconnavigate_next"></i>
<span :class="['bread-menu-text', index == menuList.length - 1 ? 'bread-menu-actived' : 'is-link']" @click="toPage">{{ el.menuName }}</span> <span :class="['bread-menu-text', index == menuList.length - 1 ? 'bread-menu-actived' : 'is-link']" @click="toPage(index)">{{ el.menuName }}</span>
</span> </span>
</div> </div>
</template> </template>
...@@ -17,7 +17,8 @@ export default { ...@@ -17,7 +17,8 @@ export default {
} }
}, },
methods: { methods: {
toPage() { toPage(index) {
if (index == this.menuList.length - 1) return;
this.$router.go(-1); this.$router.go(-1);
} }
} }
......
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