diff --git a/src/views/system/menu/utils.ts b/src/views/system/menu/utils.ts index 987eb908..e1e241cb 100644 --- a/src/views/system/menu/utils.ts +++ b/src/views/system/menu/utils.ts @@ -13,5 +13,5 @@ export const deepKeys = function* (t: Recordable, pre: any[] = []): Generator { */ export const getMaybeI18nMsg = (field: string | undefined) => { const { t } = useI18n() - return field!.includes('.') ? t(field!) : field + return field && field.includes('.') ? t(field!) : field }