diff --git a/mindinsight/ui/src/views/train-manage/model-traceback.vue b/mindinsight/ui/src/views/train-manage/model-traceback.vue index e6f7984d54510e4d56c63d25a03f08a26dcd2fce..61bcf8e8356aa088e8a3db63baacd91d3c4f597e 100644 --- a/mindinsight/ui/src/views/train-manage/model-traceback.vue +++ b/mindinsight/ui/src/views/train-manage/model-traceback.vue @@ -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); }