Compare commits

...

2 Commits

Author SHA1 Message Date
reco_luan
96a879d0ac fix: build error 2019-11-29 13:38:14 +08:00
reco_luan
50ec3e8a4b fix: page numbers do not initialize when jumping 2019-11-28 23:07:05 +08:00
4 changed files with 15 additions and 4 deletions

View File

@ -65,8 +65,8 @@ export default {
},
mounted () {
this.recoShow = true
this._setPage(this._getStoragePage())
this.recoShow = true
},
methods: {
@ -90,6 +90,11 @@ export default {
_getTimeNum (date) {
return parseInt(new Date(date.frontmatter.date).getTime())
}
},
watch: {
$route () {
this._setPage(this._getStoragePage())
}
}
}
</script>

View File

@ -52,8 +52,8 @@ export default {
},
mounted () {
this.recoShow = true
this._setPage(this._getStoragePage())
this.recoShow = true
},
methods: {
@ -76,6 +76,12 @@ export default {
this.$page.currentPage = page
this._setStoragePage(page)
}
},
watch: {
$route () {
this._setPage(this._getStoragePage())
}
}
}
</script>

View File

@ -76,4 +76,4 @@ export default {
sessionStorage.setItem('currentPage', JSON.stringify({ page, path }))
}
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "vuepress-theme-reco",
"version": "1.1.2",
"version": "1.1.4",
"description": "A simple and beautiful vuepress Blog & Doc theme.",
"main": "index.js",
"scripts": {