style(接口测试): 场景步骤右侧悬浮按钮样式优化

--bug=1011748 --user=赵勇 【接口测试】github#12015,接口自动化中,打开组件栏(即点击"+"图标),并进行接口请求的页签切换时,组件栏各组件消失,但组件栏仍显示为开启状态 https://www.tapd.cn/55049933/s/1127168
This commit is contained in:
fit2-zhao 2022-03-29 15:36:00 +08:00 committed by fit2-zhao
parent 534fa3c154
commit cf4ece462f
1 changed files with 8 additions and 3 deletions

View File

@ -600,8 +600,7 @@ export default {
}, },
methods: { methods: {
refreshApiScenario() { refreshApiScenario() {
this.getApiScenario(); this.getApiScenario(true);
this.reloadTree = getUUID();
}, },
recursiveSorting(arr) { recursiveSorting(arr) {
for (let i in arr) { for (let i in arr) {
@ -1150,6 +1149,9 @@ export default {
this.$store.state.selectStep = data; this.$store.state.selectStep = data;
this.buttonData = buttons(this); this.buttonData = buttons(this);
this.initPlugins(); this.initPlugins();
if (this.buttonData.length === 0 && this.$refs.refFab && this.$refs.refFab.active) {
this.$refs.refFab.openMenu();
}
}, },
suggestClick(node) { suggestClick(node) {
this.response = {}; this.response = {};
@ -1534,7 +1536,7 @@ export default {
}) })
}); });
}, },
getApiScenario() { getApiScenario(isRefresh) {
this.loading = true; this.loading = true;
this.isBatchProcess = false; this.isBatchProcess = false;
this.stepEnable = true; this.stepEnable = true;
@ -1618,6 +1620,9 @@ export default {
this.sort(); this.sort();
this.$nextTick(() => { this.$nextTick(() => {
this.cancelBatchProcessing(); this.cancelBatchProcessing();
if (isRefresh) {
this.reloadTree = getUUID();
}
}); });
// //
let v1 = { let v1 = {