|
@@ -217,6 +217,10 @@ export default {
|
|
|
uniqueName:''
|
|
|
};
|
|
|
}
|
|
|
+ if(this.list.length==1){
|
|
|
+ //当前在最后一页且只有一条数据时,删除后跳到前一页
|
|
|
+ this.currentPage = this.currentPage===1?1:this.currentPage-1;
|
|
|
+ }
|
|
|
this.getDataList();
|
|
|
this.warning(res.data.msg || '操作成功','success');
|
|
|
}else{
|