Browse Source

调整导航标签

master
453530270@qq.com 1 year ago
parent
commit
8c91077b9c
  1. 7
      src/components/main/main.vue

7
src/components/main/main.vue

@ -17,7 +17,9 @@
<Content class="main-content-con"> <Content class="main-content-con">
<Layout class="main-layout-con"> <Layout class="main-layout-con">
<div class="tag-nav-wrapper"> <div class="tag-nav-wrapper">
<tags-nav :value="$route" @input="handleClick" :list="tagNavList" @on-close="handleCloseTag"/> <Tag type="dot">首页</Tag>
<Tag type="dot" color="green"> {{this.$route.name}}</Tag>
<!-- <tags-nav :value="$route" @input="handleClick" :list="tagNavList" @on-close="handleCloseTag"/> -->
</div> </div>
<Content class="content-wrapper"> <Content class="content-wrapper">
<keep-alive :include="cacheList"> <keep-alive :include="cacheList">
@ -65,9 +67,11 @@ export default {
} }
}, },
computed: { computed: {
// list
tagNavList () { tagNavList () {
return this.$store.state.app.tagNavList return this.$store.state.app.tagNavList
}, },
//
userAvatar () { userAvatar () {
if (JSON.stringify(this.$store.state.user.userInfo) !== '{}') { if (JSON.stringify(this.$store.state.user.userInfo) !== '{}') {
let userData = {} let userData = {}
@ -91,6 +95,7 @@ export default {
local () { local () {
return this.$store.state.app.local return this.$store.state.app.local
} }
// add others
}, },
methods: { methods: {
...mapMutations([ ...mapMutations([

Loading…
Cancel
Save