From 47dcd0d8a3f787101fef5d1f6a50e3df15fe0473 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 12 Apr 2023 20:04:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E6=B7=BB=E5=8A=A0=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E9=A1=B9=E6=9C=89=E9=97=AE=E9=A2=98=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025344 --user=王孝刚 [性能测试] github #235781.20.21-lts版本,性能测试批量添加监控项有问题。 https://www.tapd.cn/55049933/s/1362022 --- .../frontend/src/business/test/components/EditMonitor.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/performance-test/frontend/src/business/test/components/EditMonitor.vue b/performance-test/frontend/src/business/test/components/EditMonitor.vue index c559205fb4..c51e342287 100644 --- a/performance-test/frontend/src/business/test/components/EditMonitor.vue +++ b/performance-test/frontend/src/business/test/components/EditMonitor.vue @@ -58,6 +58,7 @@ import MsDialogFooter from "metersphere-frontend/src/components/MsDialogFooter"; import MonitorKeyValue from "./MonitorKeyValue"; +import {KeyValue} from "metersphere-frontend/src/model/ScenarioModel"; export default { name: "EditMonitor", @@ -92,6 +93,9 @@ export default { } this.form = copy; } + if (this.monitorList.length === 0) { + this.monitorList.push(new KeyValue({enable: true})); + } if (index !== '' && index !== undefined) { this.index = index; } @@ -99,6 +103,7 @@ export default { closeFunc() { this.form = {}; this.dialogVisible = false; + this.monitorList = []; }, update() { this.$refs.monitorForm.validate(valid => {