From 4fc342c0a7ed36cc9275cc27a5d9cb427674afa6 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Mon, 21 Nov 2022 11:15:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/user/index.vue | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 6b3e41260..d7a94e82a 100644 --- a/yudao-ui-admin-vue3/src/views/system/user/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/user/index.vue @@ -346,6 +346,25 @@ const handleCreate = async () => { // 重置表单 deptId.value = null postIds.value = [] + await nextTick() + if (allSchemas.formSchema[0].field !== 'username') { + unref(formRef)?.addSchema( + { + field: 'username', + label: '用户账号', + component: 'Input' + }, + 0 + ) + unref(formRef)?.addSchema( + { + field: 'password', + label: '用户密码', + component: 'InputPassword' + }, + 1 + ) + } } // 修改操作