From ae0d601c536472d9a88e641f2abd27bdba1a815b Mon Sep 17 00:00:00 2001 From: baiqi Date: Tue, 4 Jul 2023 12:11:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=A4=A7=E6=95=B0=E6=8D=AE=E9=87=8F=E6=97=B6=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=88=97=E8=A1=A8=E8=99=9A=E6=8B=9F=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E8=AE=A1=E7=AE=97=E8=B0=83=E4=BC=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027497 --user=白奇 【接口测试】 github#25304在使用平台做测试时chrome经常出现崩溃问题 https://www.tapd.cn/55049933/s/1389144 --- api-test/frontend/package.json | 2 +- .../automation/scenario/EditApiScenario.vue | 232 +++++++++--------- 2 files changed, 116 insertions(+), 118 deletions(-) diff --git a/api-test/frontend/package.json b/api-test/frontend/package.json index 0b155de161..77013d1930 100644 --- a/api-test/frontend/package.json +++ b/api-test/frontend/package.json @@ -17,7 +17,7 @@ "@fortawesome/free-regular-svg-icons": "^5.12.0", "@fortawesome/free-solid-svg-icons": "^5.12.0", "@fortawesome/vue-fontawesome": "^0.1.9", - "@ba1q1/vue-easy-tree": "^1.0.4", + "@ba1q1/vue-easy-tree": "^1.1.0", "axios": "^0.27.2", "diffable-html": "^4.0.0", "echarts": "^5.0.2", diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 7f7986f0ef..2336f73c89 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -87,26 +87,26 @@
- - - - - - - -
+ + + + + + + +
{{ $t('api_test.automation.step_total') }}:{{ scenarioDefinition.length }}
+ class="ml-10" /> -
- - +
+ + + - - - - + v-show="!node.expanded" + class="el-icon-circle-plus-outline custom-node_e" + @click="openOrClose(node, data)" /> - - - - - - - - - -
+ v-show="node.expanded" + class="el-icon-remove-outline custom-node_e" + @click="openOrClose(node, data)" /> + + + + + + + + + +
+
+
- - - +
{ - if (item.data && item.data.id + '_' + item.data.parentIndex === sub.resourceId - && item.data.requestResult.length === 0) { + if ( + item.data && + item.data.id + '_' + item.data.parentIndex === sub.resourceId && + item.data.requestResult.length === 0 + ) { sub.responseResult.console = console; item.data.requestResult.push(sub); // 更新父节点状态 @@ -1767,7 +1765,7 @@ export default { this.clearResult(this.scenarioDefinition); this.clearNodeStatus(this.$refs.stepTree.root.childNodes); runScenario.run = false; - this.message = "STOP"; + this.message = 'STOP'; return; } let hasRequest = runScenario && runScenario.hasRequest;