Commit ede4eb0a by yan xiaonan Committed by Gitee

bug修复,同步dictTypeValue到form 否则导致表单验证不通过

Signed-off-by: yan xiaonan <549250640@qq.com>
parent 937c5218
...@@ -197,6 +197,11 @@ const setDialogTile = (type: string) => { ...@@ -197,6 +197,11 @@ const setDialogTile = (type: string) => {
dialogVisible.value = true dialogVisible.value = true
} }
// 同步dictTypeValue到form 否则导致表单验证不通过
watch(dictTypeValue, (val) => {
unref(typeFormRef)?.setValues({ type: val })
})
// 提交按钮 // 提交按钮
const submitTypeForm = async () => { const submitTypeForm = async () => {
const elForm = unref(typeFormRef)?.getElFormRef() const elForm = unref(typeFormRef)?.getElFormRef()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment