fix: update constants.ts barrel export and fix MegaDropdownData type safety

This commit is contained in:
张翔 committed 2026-04-30 19:56:57 +08:00
1 parent a94d54b3d2
commit 145bc190e3
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ function HeaderContent() {
<MegaDropdown
key={item.id}
label={item.label}
items={MEGA_DROPDOWN_DATA[item.dropdownKey!]}
items={MEGA_DROPDOWN_DATA[item.dropdownKey!] ?? []}
isOpen={openDropdown === item.id}
onToggle={() => setOpenDropdown(openDropdown === item.id ? null : item.id)}
/>