fix: 新增用户

pull/2/head
xingyu4j 2022-11-21 11:15:10 +08:00
parent 144488cb74
commit 4fc342c0a7
1 changed files with 19 additions and 0 deletions

View File

@ -346,6 +346,25 @@ const handleCreate = async () => {
// //
deptId.value = null deptId.value = null
postIds.value = [] 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
)
}
} }
// //