fix: 新增用户

This commit is contained in:
xingyu4j 2022-11-21 11:15:10 +08:00
parent 144488cb74
commit 4fc342c0a7

View File

@ -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
)
}
}
//