From 3f9627cc4d25a708098a0aae619126b38645deb2 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 23 Feb 2022 16:52:08 +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=8D=E6=8A=BD=E5=B1=89=E6=A0=B7=E5=BC=8F=E9=A2=91?= =?UTF-8?q?=E7=B9=81=E5=88=87=E6=8D=A2=E5=85=A8=E5=B1=8F=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=B6=E4=BC=9A=E5=8F=91=E7=94=9F=E6=97=A0=E6=B3=95=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010482 --user=宋天阳 【接口测试】-【接口定义】-操作-编辑-mock-操作-编辑-点击缩小窗口未生效 https://www.tapd.cn/55049933/s/1108874 --- .../mock/Components/MockApiScriptEditor.vue | 6 +- .../mock/Components/MockResponseParam.vue | 2 +- .../components/common/components/MsDrawer.vue | 453 +++++++++--------- 3 files changed, 234 insertions(+), 227 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue index b51deb250a..591657d3cf 100644 --- a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue +++ b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue @@ -70,8 +70,10 @@ export default { } }, created() { - if (!this.jsr223Processor.scriptLanguage) { - this.jsr223Processor.scriptLanguage = "beanshell"; + if(this.jsr223Processor){ + if (!this.jsr223Processor.scriptLanguage) { + this.jsr223Processor.scriptLanguage = "beanshell"; + } } if (this.showApi) { this.baseCodeTemplates = this.httpCodeTemplates; diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockResponseParam.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockResponseParam.vue index 457ee7fe5b..f5f91086f2 100644 --- a/frontend/src/business/components/api/definition/components/mock/Components/MockResponseParam.vue +++ b/frontend/src/business/components/api/definition/components/mock/Components/MockResponseParam.vue @@ -47,7 +47,7 @@
- +
diff --git a/frontend/src/business/components/common/components/MsDrawer.vue b/frontend/src/business/components/common/components/MsDrawer.vue index 74fd8047cb..0bd2a6ec3f 100644 --- a/frontend/src/business/components/common/components/MsDrawer.vue +++ b/frontend/src/business/components/common/components/MsDrawer.vue @@ -1,5 +1,6 @@