Skip to content

Commit 8379b4c

Browse files
author
reco_luan
committed
fix: page numbers do not initialize when jumping
1 parent 7498145 commit 8379b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/Category.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default {
5353
computed: {
5454
// 时间降序后的博客列表
5555
posts () {
56+
this._setPage(this._getStoragePage())
5657
let posts = this.$currentCategories.pages
5758
posts = this._filterPostData(posts)
5859
this._sortPostData(posts)
@@ -66,7 +67,6 @@ export default {
6667
6768
mounted () {
6869
this.recoShow = true
69-
this._setPage(this._getStoragePage())
7070
},
7171
7272
methods: {

layouts/Tag.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default {
4444
computed: {
4545
// 时间降序后的博客列表
4646
posts () {
47+
this._setPage(this._getStoragePage())
4748
let posts = this.$currentTags.pages
4849
posts = this._filterPostData(posts)
4950
this._sortPostData(posts)
@@ -53,7 +54,6 @@ export default {
5354
5455
mounted () {
5556
this.recoShow = true
56-
this._setPage(this._getStoragePage())
5757
},
5858
5959
methods: {

0 commit comments

Comments
 (0)