From ede4eb0aee99babdc32962e9153442d1d810a7f1 Mon Sep 17 00:00:00 2001 From: yan xiaonan <549250640@qq.com> Date: Sun, 12 Feb 2023 14:15:20 +0000 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=AD=A5dictTypeValue=E5=88=B0form=20=E5=90=A6=E5=88=99?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81=E4=B8=8D?= =?UTF-8?q?=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yan xiaonan <549250640@qq.com> --- src/views/system/dict/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index d4cce484..9324f764 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -197,6 +197,11 @@ const setDialogTile = (type: string) => { dialogVisible.value = true } +// 同步dictTypeValue到form 否则导致表单验证不通过 +watch(dictTypeValue, (val) => { + unref(typeFormRef)?.setValues({ type: val }) +}) + // 提交按钮 const submitTypeForm = async () => { const elForm = unref(typeFormRef)?.getElFormRef()