-
+
-
{{`${index+1}. ${item[1]}`}}
-
- -
-
+
+ -
+
{{`${index+1}. ${item.title}`}}
-
-
- {{`${index+1}-${i+1}. ${s[1]}`}}
-
+ {{`${index+1}-${i+1}. ${s[1]}`}}
@@ -34,16 +52,14 @@
diff --git a/theme-vdoing/components/CategoriesBar.vue b/theme-vdoing/components/CategoriesBar.vue
index a062062..7e5c548 100644
--- a/theme-vdoing/components/CategoriesBar.vue
+++ b/theme-vdoing/components/CategoriesBar.vue
@@ -1,12 +1,14 @@
-
- {{ length === 'all' ? '全部分类' : '文章分类' }}
-
+
{{ length === 'all' ? '全部分类' : '文章分类' }}
{{item.length}}
-
- 更多...
-
+ 更多...
@@ -38,7 +42,7 @@ export default {
}
},
computed: {
- categories() {
+ categories () {
if (this.length === 'all') {
return this.categoriesData
} else {
@@ -50,54 +54,53 @@ export default {
diff --git a/theme-vdoing/components/CategoriesPage.vue b/theme-vdoing/components/CategoriesPage.vue
index b84fa8c..b952291 100644
--- a/theme-vdoing/components/CategoriesPage.vue
+++ b/theme-vdoing/components/CategoriesPage.vue
@@ -38,7 +38,7 @@ import Pagination from '@theme/components/Pagination'
import CategoriesBar from '@theme/components/CategoriesBar'
export default {
- data(){
+ data () {
return {
category: '',
total: 0, // 总长
@@ -47,7 +47,7 @@ export default {
}
},
components: { MainLayout, PostList, Pagination, CategoriesBar },
- mounted() {
+ mounted () {
const queryCategory = this.$route.query.category
if (queryCategory) {
this.category = queryCategory
@@ -70,12 +70,12 @@ export default {
}
},
methods: {
- handlePagination(i) { // 分页
+ handlePagination (i) { // 分页
this.currentPage = i
}
},
watch: {
- '$route.query.category'() {
+ '$route.query.category' () {
this.category = this.$route.query.category
if (this.category) {
this.total = this.$groupPosts.categories[this.category].length
@@ -91,41 +91,40 @@ export default {
diff --git a/theme-vdoing/components/Footer.vue b/theme-vdoing/components/Footer.vue
index c99e959..9935fc1 100644
--- a/theme-vdoing/components/Footer.vue
+++ b/theme-vdoing/components/Footer.vue
@@ -1,6 +1,9 @@