Skip to content

Commit e76e8cb

Browse files
committed
chore(dice-front): change tabs
1 parent 80e4495 commit e76e8cb

File tree

3 files changed

+12235
-10751
lines changed

3 files changed

+12235
-10751
lines changed

dice-front/components/Header.vue

+19-21
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
<a href="/feed.xml">RSS订阅</a>
1616
</li>
1717
<li class="tab-item">
18-
<a href="https://bigdata.bihell.com">大数据</a>
18+
<a href="https://bigdata.icu/">大数据</a>
1919
</li>
2020
<li class="tab-item">
21-
<a href="https://bigdata.bihell.com/tools/liqi/soft/li-qi.html"
22-
>利器</a
23-
>
21+
<a href="https://bigdata.icu/tools/vps.html">VPS整理</a>
2422
</li>
2523
</ul>
2624
<div class="header-menu">
@@ -47,10 +45,10 @@
4745
import _ from 'underscore'
4846
4947
const staticMenu = [
50-
{ path: '/', name: '首页' },
51-
{ path: '/category', name: '分类' },
52-
{ path: '/tag', name: '标签' },
53-
{ path: '/archive', name: '归档' }
48+
{ path: '/', name: '首页' },
49+
{ path: '/category', name: '分类' },
50+
{ path: '/tag', name: '标签' },
51+
{ path: '/archive', name: '归档' }
5452
]
5553
5654
export default {
@@ -91,21 +89,21 @@ export default {
9189
options() {
9290
return this.$store.state.option.data
9391
},
94-
pageMenu() {
95-
return this.$store.state.article.pageMenu
96-
}
92+
pageMenu() {
93+
return this.$store.state.article.pageMenu
94+
}
95+
},
96+
mounted() {
97+
this.initMenu()
9798
},
98-
mounted() {
99-
this.initMenu()
100-
},
10199
methods: {
102-
initMenu() {
103-
const links = staticMenu
104-
this.pageMenu.forEach(menu => {
105-
links.push({ path: '/page/' + menu.id, name: menu.title })
106-
})
107-
this.links = links
108-
},
100+
initMenu() {
101+
const links = staticMenu
102+
this.pageMenu.forEach(menu => {
103+
links.push({ path: '/page/' + menu.id, name: menu.title })
104+
})
105+
this.links = links
106+
},
109107
toggle() {
110108
this.menuOpen = !this.menuOpen
111109
},

0 commit comments

Comments
 (0)