From ff938a9e30eef6a5af6a36cce96ad216b010fea3 Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 14 Oct 2022 16:54:17 +0800 Subject: [PATCH] fix: update user error --- yudao-ui-admin-vue3/src/views/system/user/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/system/user/index.vue b/yudao-ui-admin-vue3/src/views/system/user/index.vue index 40357adff..78e702192 100644 --- a/yudao-ui-admin-vue3/src/views/system/user/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/user/index.vue @@ -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') } // 提交按钮