fix: 关闭租户时 获取的voList为null 需要添加可选链

This commit is contained in:
dap 2024-10-08 14:22:25 +08:00
parent a0c2cffcab
commit e8d0fd0e27

View File

@ -60,7 +60,7 @@ const formSchema = computed((): VbenFormSchema[] => {
component: 'VbenSelect',
componentProps: {
class: 'bg-background h-[40px] focus:border-primary',
options: tenantInfo.value.voList.map((item) => ({
options: tenantInfo.value.voList?.map((item) => ({
label: item.companyName,
value: item.tenantId,
})),