From 36860f4eebaccecf10fd83079966e399311ca307 Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Wed, 25 Aug 2021 22:47:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DTCP=20Mock=E6=9C=9F=E6=9C=9B=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=86=85=E5=AE=B9=E4=B8=8D=E8=83=BD=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=97=AE=E9=A2=98=20(#5707)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: BugKing --- .../api/definition/components/mock/TcpMockConfig.vue | 1 + .../api/definition/components/request/tcp/TcpParams.vue | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/mock/TcpMockConfig.vue b/frontend/src/business/components/api/definition/components/mock/TcpMockConfig.vue index 7322592eea..c6f6df0e16 100644 --- a/frontend/src/business/components/api/definition/components/mock/TcpMockConfig.vue +++ b/frontend/src/business/components/api/definition/components/mock/TcpMockConfig.vue @@ -336,6 +336,7 @@ export default { }; } this.$nextTick(function () { + this.$refs.tcpParam.reload(); this.showHeadTable = true; }); }); diff --git a/frontend/src/business/components/api/definition/components/request/tcp/TcpParams.vue b/frontend/src/business/components/api/definition/components/request/tcp/TcpParams.vue index 02c8eeae43..c62a65736f 100644 --- a/frontend/src/business/components/api/definition/components/request/tcp/TcpParams.vue +++ b/frontend/src/business/components/api/definition/components/request/tcp/TcpParams.vue @@ -96,13 +96,7 @@ export default { watch:{ reportType(){ this.request.reportType = this.reportType; - }, - 'request.rawDataStruct'(){ - this.reload(); - }, - 'request.jsonDataStruct'(){ - this.reload(); - }, + } }, created() { this.currentProjectId = getCurrentProjectID();