diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index d4cce4846cfda81745092381d89e83485f9f359d..9324f76480ec6da73ff36604c4153461d6c32a60 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()