From 040a7a5d7061f856f7acdd13bccf05d2f25859cc Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Thu, 29 Feb 2024 19:33:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=BF=80=E6=B4=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/devtools/template/TemplateModal.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/system/devtools/template/TemplateModal.vue b/src/views/system/devtools/template/TemplateModal.vue index f550cf4..4645517 100644 --- a/src/views/system/devtools/template/TemplateModal.vue +++ b/src/views/system/devtools/template/TemplateModal.vue @@ -113,15 +113,16 @@ // 处理清除脏数据 await resetFields(); await clearValidate(); + state.templateObjs = []; + state.mainActiveKey = ''; + state.childActiveKey = ''; await setProps({ disabled: false }); - await updateSchema([ - { - field: 'type', - componentProps: { - onChange: (value: string) => (state.childrenTabVisible = value == '2') - } + await updateSchema([{ + field: 'type', + componentProps: { + onChange: (value: string) => (state.childrenTabVisible = value == '2') } - ]); + }]); // 处理设置数据 state.tag = data._tag; const id = data.record?.id;