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

Commit 4f08432

Browse files
committed
feat: return null when $pagination doesn't exist
1 parent 7350234 commit 4f08432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/pagination.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default ({ Vue }) => {
118118
$pagination() {
119119
// @ts-ignore
120120
if (!this.$route.meta.pid || !this.$route.meta.id) {
121-
return {}
121+
return null
122122
}
123123

124124
// @ts-ignore

0 commit comments

Comments
 (0)