|
|
@ -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([ |
|
|
|