@ -121,14 +121,13 @@ function toEdit(key) {
}
function cancel(key) {
console.log(isAdd.value);
let ind = -1;
dataList.value.filter((item, index) => {
if (item.key === key) {
if (isAdd.value) {
ind = index;
} else {
item.isEdit = 0;
getList();
});