Fix the bug of remove button

This commit is contained in:
ZaneYork 2020-10-23 14:02:45 +08:00
parent 3ee9624d54
commit 75ee0f632b
1 changed files with 3 additions and 1 deletions

View File

@ -446,8 +446,10 @@
} }
}); });
} }
if (index >= 0) if (index >= 0){
list.splice(index, 1); list.splice(index, 1);
this.currentButtonId = null;
}
}, },
firstNotEmpty: function (alias, key) { firstNotEmpty: function (alias, key) {
return this.isEmpty(alias) ? key : alias; return this.isEmpty(alias) ? key : alias;