Permalink
Browse files

fix(pagination-nav): Fix link-gen and page-gen

  • Loading branch information...
tmorehouse committed Aug 12, 2017
1 parent 188adea commit 6746cb1fc4c5569ee21c434aadc929984bc15f8a
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/components/pagination-nav.vue
@@ -360,14 +360,14 @@ export default {
this.currentPage = pageNum;
},
makeLink(pagenum) {
if (this.linkGen && this.linkGen instanceof Function) {
if (this.linkGen && typeof this.linkGen === 'function') {
return this.linkGen(pagenum);
}
const link = `${this.baseUrl}${pagenum}`;
return this.useRouter ? { path: link } : link;
},
makePage(pagenum) {
if (this.pageGen && this.pageGen instanceof Function) {
if (this.pageGen && typeof this.pageGen === 'function') {
return this.pageGen(pagenum);
}
return pagenum;

0 comments on commit 6746cb1

Please sign in to comment.