fix: bugs

This commit is contained in:
xingyuv
2023-03-07 09:41:01 +08:00
parent 65e3652534
commit 004d214a11
3 changed files with 12 additions and 3 deletions

View File

@ -282,7 +282,7 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[
// 给options添加国际化
const filterOptions = (options: Recordable, labelField?: string) => {
return options.map((v: Recordable) => {
return options?.map((v: Recordable) => {
if (labelField) {
v['labelField'] = t(v.labelField)
} else {