fix: 关联场景用例tag显示出错

This commit is contained in:
chenjianxing 2021-01-28 12:57:48 +08:00
parent 363e58067c
commit 50ea7f76bf
2 changed files with 6 additions and 3 deletions

View File

@ -89,9 +89,6 @@
selectRows: new Set() selectRows: new Set()
} }
}, },
created() {
this.search();
},
watch: { watch: {
selectNodeIds() { selectNodeIds() {
this.search(); this.search();
@ -102,6 +99,9 @@
}, },
methods: { methods: {
search() { search() {
if (!this.projectId) {
return;
}
this.selectRows = new Set(); this.selectRows = new Set();
this.loading = true; this.loading = true;

View File

@ -75,6 +75,9 @@
methods: { methods: {
open() { open() {
this.$refs.baseRelevance.open(); this.$refs.baseRelevance.open();
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.search();
}
}, },
setProject(projectId) { setProject(projectId) {
this.projectId = projectId; this.projectId = projectId;