fixed: method spelling error
| | |
| | | this.handleCurrentChange(this.currentPage); |
| | | } |
| | | |
| | | @Emit('changePage') chagnePage(): Consultant[] { |
| | | @Emit('changePage') changePage(): Consultant[] { |
| | | return this.pageList |
| | | } |
| | | |
| | |
| | | |
| | | if (this.totalList) { |
| | | this.pageList = this.totalList.slice(this.pageSize * currentPage - this.pageSize, this.pageSize * currentPage) |
| | | this.chagnePage(); |
| | | this.changePage(); |
| | | } |
| | | } |
| | | |
| | | @Watch('totalList') watchtotalList(newValue: Consultant[]) { |
| | | @Watch('totalList') watchTotalList(newValue: Consultant[]) { |
| | | if (newValue) { |
| | | this.handleCurrentChange(this.currentPage); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | </script> |