Skip to content

Commit f71e749

Browse files
YunaiVgitee-org
authored andcommitted
!1 bug修复,同步dictTypeValue到form 否则导致表单验证不通过
Merge pull request !1 from yan xiaonan/master
2 parents 2ec6978 + 4d34423 commit f71e749

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/views/system/dict/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ const setDialogTile = (type: string) => {
197197
dialogVisible.value = true
198198
}
199199
200+
// 同步dictTypeValue到form 否则导致表单验证不通过
201+
watch(dictTypeValue, (val) => {
202+
unref(typeFormRef)?.setValues({ type: val })
203+
})
204+
200205
// 提交按钮
201206
const submitTypeForm = async () => {
202207
const elForm = unref(typeFormRef)?.getElFormRef()

0 commit comments

Comments
 (0)