Browse Source

!422 The model traceability judgment includes the use of the includes method, which results in the index not being obtained

Merge pull request !422 from 秦君艳/master
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
ab4210e13b
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      mindinsight/ui/src/views/train-manage/model-traceback.vue

+ 6
- 6
mindinsight/ui/src/views/train-manage/model-traceback.vue View File

@@ -1167,16 +1167,16 @@ export default {
return val[i] || val[i] === 0; return val[i] || val[i] === 0;
}); });
if (!flag) { 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); 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); 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); this.table.optionsNotInTable.splice(index, 1);
} }




Loading…
Cancel
Save