diff --git a/themes/heo/components/NoticeBar.js b/themes/heo/components/NoticeBar.js index 064a3844..1ef5aa1e 100644 --- a/themes/heo/components/NoticeBar.js +++ b/themes/heo/components/NoticeBar.js @@ -8,8 +8,10 @@ import { siteConfig } from '@/lib/config' * 通知横幅 */ export function NoticeBar() { - const notices = siteConfig('HEO_NOTICE_BAR', null, CONFIG) - + let notices = siteConfig('HEO_NOTICE_BAR', null, CONFIG) + if (typeof notices === 'string') { + notices = JSON.parse(notices) + } if (!notices || notices?.length === 0) { return <> }