fix: 添加默认值
This commit is contained in:
parent
e01bd218b9
commit
5cb1e36fba
@ -141,7 +141,6 @@ export const drawerSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
class: 'w-full',
|
||||
getPopupContainer,
|
||||
mode: 'multiple',
|
||||
optionFilterProp: 'label',
|
||||
@ -155,7 +154,6 @@ export const drawerSchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
class: 'w-full',
|
||||
getPopupContainer,
|
||||
mode: 'multiple',
|
||||
optionFilterProp: 'label',
|
||||
|
@ -31,6 +31,9 @@ const title = computed(() => {
|
||||
const [BasicForm, formApi] = useVbenForm({
|
||||
commonConfig: {
|
||||
formItemClass: 'col-span-2',
|
||||
componentProps: {
|
||||
class: 'w-full',
|
||||
},
|
||||
labelWidth: 80,
|
||||
},
|
||||
schema: drawerSchema(),
|
||||
@ -138,9 +141,9 @@ const [BasicDrawer, drawerApi] = useVbenDrawer({
|
||||
// 更新 && 赋值
|
||||
const {
|
||||
postIds = [],
|
||||
posts,
|
||||
posts = [],
|
||||
roleIds = [],
|
||||
roles,
|
||||
roles = [],
|
||||
user,
|
||||
} = await findUserInfo(id);
|
||||
const postOptions = posts.map((item) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user