fix: 添加默认值

This commit is contained in:
dap 2024-09-30 09:55:55 +08:00
parent e01bd218b9
commit 5cb1e36fba
2 changed files with 5 additions and 4 deletions

View File

@ -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',

View File

@ -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) => ({