From 7e5a02ad41c437ad1cdd99c41b0c15edee68e95f Mon Sep 17 00:00:00 2001 From: konbai <1527468660@qq.com> Date: Sat, 12 Mar 2022 00:32:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20--=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=BF=9D=E5=AD=98=E8=A1=A8=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=94=99=E8=AF=AF=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8A=E6=AC=A1=E7=9A=84=E6=95=B0=E6=8D=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/tool/build/index.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/tool/build/index.vue b/ruoyi-ui/src/views/tool/build/index.vue index 4e48c186..f6dff016 100644 --- a/ruoyi-ui/src/views/tool/build/index.vue +++ b/ruoyi-ui/src/views/tool/build/index.vue @@ -183,7 +183,7 @@ export default { selectComponents, layoutComponents, labelWidth: 100, - drawingList: drawingDefault, + drawingList: [], drawingData: {}, activeId: drawingDefault[0].formId, drawerVisible: false, @@ -500,14 +500,13 @@ export default { this.formConf = data }, /** 表单基本信息 */ - handleForm(){ + handleForm() { this.formData = { fields: deepClone(this.drawingList), - ...this.formConf } - this.form.content = JSON.stringify(this.formData); - this.formOpen = true; - this.formTitle = "添加表单"; + this.form.content = JSON.stringify(this.formData); + this.formOpen = true; + this.formTitle = "添加表单"; }, // 表单重置 reset() {