Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 89dbddb

Browse files
committed
fix: build failed when creating new markdown pages
1 parent 52bc7ca commit 89dbddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/client/pagination.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default ({ Vue }) => {
111111
computed: {
112112
$pagination() {
113113
if (!this.$route.meta.pid || !this.$route.meta.id) {
114-
throw new Error(`Cannot access "$pagination" in current page.`)
114+
return {}
115115
}
116116

117117
return this.$getPagination(

0 commit comments

Comments
 (0)