Commit 80b5dc0068f86a633fca363656d827a70b0bfd61
1 parent
d568a18e
修正页码计算错误
Showing
2 changed files
with
3 additions
and
4 deletions
web_src/src/components/channelList.vue
| ... | ... | @@ -153,11 +153,10 @@ export default { |
| 153 | 153 | }, |
| 154 | 154 | getDeviceChannelList: function () { |
| 155 | 155 | let that = this; |
| 156 | - console.log(this.currentPage - 1) | |
| 157 | 156 | |
| 158 | 157 | this.$axios.get(`/api/devices/${this.$route.params.deviceId}/channels`, { |
| 159 | 158 | params: { |
| 160 | - page: that.currentPage - 1, | |
| 159 | + page: that.currentPage, | |
| 161 | 160 | count: that.count, |
| 162 | 161 | query: that.searchSrt, |
| 163 | 162 | online: that.online, |
| ... | ... | @@ -254,7 +253,7 @@ export default { |
| 254 | 253 | |
| 255 | 254 | this.$axios.get(`/api/subChannels/${this.deviceId}/${this.parentChannelId}/channels`, { |
| 256 | 255 | params: { |
| 257 | - page: that.currentPage - 1, | |
| 256 | + page: that.currentPage, | |
| 258 | 257 | count: that.count, |
| 259 | 258 | query: that.searchSrt, |
| 260 | 259 | online: that.online, | ... | ... |
web_src/src/components/videoList.vue