提交 5827e27f 编写于 作者: Q qin_jun_yan

Judgment that the use of the includes method is incorrect and the index cannot be obtained

上级 4f6d8a3c
......@@ -1167,16 +1167,16 @@ export default {
return val[i] || val[i] === 0;
});
if (!flag) {
let haveItem = this.table.optionsNotInCheckbox.includes(i);
if (haveItem) {
let index = this.table.optionsNotInCheckbox.indexOf(i);
if (index >= 0) {
this.table.optionsNotInCheckbox.splice(index, 1);
}
haveItem = this.table.optionsNotInEchart.includes(i);
if (haveItem) {
index = this.table.optionsNotInEchart.indexOf(i);
if (index >= 0) {
this.table.optionsNotInEchart.splice(index, 1);
}
haveItem = this.table.optionsNotInTable.includes(i);
if (haveItem) {
index = this.table.optionsNotInTable.indexOf(i);
if (index >= 0) {
this.table.optionsNotInTable.splice(index, 1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册