修复导航菜单问题

This commit is contained in:
pushuo 2022-08-19 16:17:05 +08:00
parent 62c9921750
commit 6efe768138
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class MenuRepo
foreach ($childrenGroups as $groupIndex => $childrenGroup) {
$childrenGroup['name'] = $childrenGroup['name'][$locale];
if ($childrenGroup['type'] == 'image') {
$childrenGroup['image']['image'] = image_origin($childrenGroup['image']['image'][$locale]);
$childrenGroup['image']['image'] = image_origin($childrenGroup['image']['image'][$locale] ?? '');
$childrenGroup['image']['link'] = type_route($childrenGroup['image']['link']['type'], $childrenGroup['image']['link']['value']);
} elseif ($childrenGroup['children']) {
foreach ($childrenGroup['children'] as $childrenIndex => $children) {