diff --git a/components/Pagation/index.vue b/components/Pagation/index.vue index 9b3a50e..4f8d3c0 100644 --- a/components/Pagation/index.vue +++ b/components/Pagation/index.vue @@ -1,17 +1,17 @@ @@ -78,27 +78,15 @@ export default { }, methods: { goPrev () { - alert(this.currentPage) + let currentPage = this.currentPage if (this.currentPage > 1) { - let currentPage = this.currentPage; - --currentPage; - - alert(currentPage) - this.emit(currentPage); - - return; + this.emit(--currentPage) } }, goNext () { - alert(this.currentPage) - alert(this.pages) - if (this.currentPage < this.pages) { - let currentPage = this.currentPage; - ++currentPage; - alert(currentPage) - this.emit(currentPage); - - return; + let currentPage = this.currentPage + if (currentPage < this.pages) { + this.emit(++currentPage) } }, jumpPage: function(id) { @@ -168,4 +156,4 @@ export default { padding: 0px 8px; &.jumppoint margin-left: 30px; - \ No newline at end of file +