diff --git a/src/views/gameswitch/index.vue b/src/views/gameswitch/index.vue index c091a06..0531488 100644 --- a/src/views/gameswitch/index.vue +++ b/src/views/gameswitch/index.vue @@ -162,6 +162,9 @@ export default { }).then(() => { delGameSwitch({ switch_name: row.switch_name }).then(response => { if (response.code === 0) { + if (this.gameSwitchList.length === 1 && this.curpage === this.totalpage && this.curpage > 1) { + this.curpage-- + } this.getList() this.$notify({ title: 'Success',