fix: 接口定义无法选择模块

This commit is contained in:
chenjianxing 2021-03-31 16:50:04 +08:00
parent 57bddf4bd0
commit b2b83a57f5
1 changed files with 1 additions and 6 deletions

View File

@ -133,16 +133,11 @@
this.data.forEach(node => {
buildTree(node, {path: ''});
});
this.$emit('setModuleOptions', this.data);
this.$emit('setNodeTree', this.data);
if (this.$refs.nodeTree) {
this.$refs.nodeTree.filter(this.condition.filterText);
}
let moduleOptions = [];
this.data.forEach(node => {
buildNodePath(node, {path: ''}, moduleOptions);
});
this.moduleOptions = moduleOptions;
this.$emit('setModuleOptions', moduleOptions);
}
});
},