diff --git a/src/views/course/Curriculum.vue b/src/views/course/Curriculum.vue index 93af661..6148943 100644 --- a/src/views/course/Curriculum.vue +++ b/src/views/course/Curriculum.vue @@ -270,6 +270,13 @@ export default { }).then(() => { let ids = this.multipleSelection.map(i => i.cid); this.$post(`${this.api.delCourse}?cids=${ids.toString()}`).then(res => { + if(ids.length == this.courseData.length){ + if(this.pageNo > 1){ + this.pageNo = this.pageNo-1 + } + }else{ + + } this.getData(); this.$message.success("删除成功"); }).catch(err => { diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue index d666eb7..34e3047 100644 --- a/src/views/customer/AddCustomer.vue +++ b/src/views/customer/AddCustomer.vue @@ -97,14 +97,14 @@ - + - +