Skip to content

Commit 1371261

Browse files
committed
feat: handle exception pagination data
1 parent 6ff250d commit 1371261

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pagination.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ function pagination (vm, { crossChapter }) {
8787
next: new Link(links[index + 1]).toJSON(),
8888
}
8989
} catch (error) {
90-
return {}
90+
return {
91+
route: {}
92+
}
9193
}
9294
}
9395

@@ -142,7 +144,7 @@ function getLocalizationTexts (options, path) {
142144
texts[key] = text
143145
} else {
144146
Object.keys(text).some(local => {
145-
const isMatch = path.indexOf(local) > -1
147+
const isMatch = path && path.indexOf(local) > -1
146148

147149
texts[key] = isMatch ? text[local] : text
148150

0 commit comments

Comments
 (0)