fix: type warn

This commit is contained in:
xingyu
2023-04-23 19:35:14 +08:00
parent 6b7d092c29
commit fc366f18c8
12 changed files with 28 additions and 22 deletions

View File

@ -122,7 +122,9 @@ const open = async (type: string, id?: number, dictType?: string) => {
dialogTitle.value = t('action.' + type)
formType.value = type
resetForm()
formData.value.dictType = dictType
if (dictType) {
formData.value.dictType = dictType
}
// 修改时,设置数据
if (id) {
formLoading.value = true