From 1507de3e425dfef3e31ca1bb8feaf910917c8fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=9F=E8=B1=86=E5=93=A5?= Date: Fri, 5 Aug 2022 22:15:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=96=B0=E5=A2=9E=E8=A1=A8=E5=8D=95=E6=9C=AA=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E4=B8=8A=E6=AC=A1=E8=A1=A8=E5=8D=95=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/QuickCrud/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/QuickCrud/index.vue b/src/components/QuickCrud/index.vue index 43da053..3d3a430 100644 --- a/src/components/QuickCrud/index.vue +++ b/src/components/QuickCrud/index.vue @@ -288,6 +288,7 @@ const handleAdd = () => { return } Object.keys(formModel.value).forEach((key) => { + formModel.value[key] = '' const index = formItems.value.findIndex( (x) => x.vModel === key && (x.type === 'select' || x.type === 'tree') ) @@ -518,6 +519,7 @@ onActivated(() => { v-model="dialogFormVisible" :title="title" width="35%" + :destroy-on-close="true" @close="handleCancel()" >