From b0f720bb1ebc559f923064f31d20bc013442a725 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 27 Aug 2020 17:58:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A8=A1=E7=89=88=E6=B7=BB=E5=8A=A0undefined?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/test/components/processor/BeanShellProcessor.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/business/components/api/test/components/processor/BeanShellProcessor.vue b/frontend/src/business/components/api/test/components/processor/BeanShellProcessor.vue index 6e1882c092..38f39566fc 100644 --- a/frontend/src/business/components/api/test/components/processor/BeanShellProcessor.vue +++ b/frontend/src/business/components/api/test/components/processor/BeanShellProcessor.vue @@ -72,6 +72,9 @@ }, methods: { addTemplate(template) { + if (!this.beanShellProcessor.script) { + this.beanShellProcessor.script = ""; + } this.beanShellProcessor.script += template.value; this.reload(); },