diff --git a/api-test/frontend/src/business/automation/ApiAutomation.vue b/api-test/frontend/src/business/automation/ApiAutomation.vue index 00cf5aa509..53646758b5 100644 --- a/api-test/frontend/src/business/automation/ApiAutomation.vue +++ b/api-test/frontend/src/business/automation/ApiAutomation.vue @@ -320,6 +320,9 @@ export default { } this.$refs.apiScenarioList.search(this.projectId); } + this.$nextTick(() => { + this.$refs.nodeTree.list() + }) } else if (tab.name === 'trash') { this.trashEnable = true; this.$refs.apiTrashScenarioList.search(); @@ -627,6 +630,9 @@ export default { if (targetName === 'trash') { this.selectNodeIds = []; this.trashEnable = false; + this.$nextTick(() => { + this.$refs.nodeTree.list() + }) } else { let message = ''; this.tabs.forEach((tab) => { @@ -711,7 +717,9 @@ export default { }, refreshTree() { if (this.$refs.nodeTree) { - this.$refs.nodeTree.list(); + this.$nextTick(() => { + this.$refs.nodeTree.list() + }) } }, refreshAll() { diff --git a/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue b/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue index ae1c7a1eec..9945df2fb1 100644 --- a/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue +++ b/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue @@ -159,9 +159,6 @@ export default { relevanceProjectId() { this.list(); }, - isTrashData() { - this.list(); - }, }, created() { this.$EventBus.$on('scenarioConditionBus', (param) => { @@ -191,7 +188,6 @@ export default { this.$refs.nodeTree.filter(this.condition.filterText); }, list(projectId) { - if (this.isRelevanceModel) { this.result = getModuleByRelevanceProjectId(this.relevanceProjectId).then((response) => { this.setData(response);