diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 6dedc812c4..c099053f13 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -600,8 +600,7 @@ export default { }, methods: { refreshApiScenario() { - this.getApiScenario(); - this.reloadTree = getUUID(); + this.getApiScenario(true); }, recursiveSorting(arr) { for (let i in arr) { @@ -1150,6 +1149,9 @@ export default { this.$store.state.selectStep = data; this.buttonData = buttons(this); this.initPlugins(); + if (this.buttonData.length === 0 && this.$refs.refFab && this.$refs.refFab.active) { + this.$refs.refFab.openMenu(); + } }, suggestClick(node) { this.response = {}; @@ -1534,7 +1536,7 @@ export default { }) }); }, - getApiScenario() { + getApiScenario(isRefresh) { this.loading = true; this.isBatchProcess = false; this.stepEnable = true; @@ -1618,6 +1620,9 @@ export default { this.sort(); this.$nextTick(() => { this.cancelBatchProcessing(); + if (isRefresh) { + this.reloadTree = getUUID(); + } }); // 记录初始化数据 let v1 = {