@@ -648,6 +648,13 @@
},
handleDelete(row,index) {
console.log('删除', row);
+ if(this.tableData1.length==1){
+ this.$message({
+ type: "warning",
+ message: "请至少保留一条数据",
+ });
+ return;
+ }
this.tableData1.splice(index, 1);
// 删除操作的逻辑