fix: update user error

This commit is contained in:
xingyu 2022-10-14 16:54:17 +08:00
parent cdeaf5b892
commit ff938a9e30

View File

@ -114,18 +114,19 @@ const setDialogTile = async (type: string) => {
const handleAdd = () => {
//
deptId.value = 0
unref(formRef)?.getElFormRef()?.resetFields()
setDialogTile('create')
unref(formRef)?.getElFormRef()?.resetFields()
}
//
const handleUpdate = async (row: UserVO) => {
await setDialogTile('update')
//
const res = await UserApi.getUserApi(row.id)
console.info(res)
deptId.value = res.deptId
postIds.value = res.postIds
unref(formRef)?.setValues(res)
await setDialogTile('update')
}
//