From feeb44155b2f5e8f993ae8d11bc0cb424ac4027c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 21 Jan 2021 12:18:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E5=88=9D=E5=A7=8B=E5=8C=96TAG=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/MsInputTag.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/MsInputTag.vue b/frontend/src/business/components/api/automation/scenario/MsInputTag.vue index c57493173e..6e5b83d248 100644 --- a/frontend/src/business/components/api/automation/scenario/MsInputTag.vue +++ b/frontend/src/business/components/api/automation/scenario/MsInputTag.vue @@ -41,10 +41,15 @@ }, size: {type: String, default: "small"} }, + created() { + if (!this.currentScenario.tags) { + this.currentScenario.tags = []; + } + }, data() { return { newTag: '', - innerTags: [...this.currentScenario.tags] + innerTags: this.currentScenario.tags ? [...this.currentScenario.tags] : [] } }, watch: {