提交 ab4210e1 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!422 The model traceability judgment includes the use of the includes method,...

!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
......@@ -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.
先完成此消息的编辑!
想要评论请 注册