fix: 关闭租户时 获取的voList为null 需要添加可选链
This commit is contained in:
@@ -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,
|
||||
})),
|
||||
|
Reference in New Issue
Block a user