mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
fix: 新增用户
This commit is contained in:
parent
144488cb74
commit
4fc342c0a7
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// 修改操作
|
||||
|
Loading…
Reference in New Issue
Block a user