New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor helper pagenator #3335
Conversation
base: this.page.base || '', | ||
current: this.page.current || 0, | ||
format: `${this.config.pagination_dir}/%d/`, | ||
total: this.page.total || 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this.page.total
be zero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the initial initial value was 1, it is being handed over.
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
…r-helper-pagenator
…r-helper-pagenator
The complexity of
pagenatorHelper
is46
, it is too large as a single function, so we will distribute the complexity.