mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #1636 from Heathcliff-third-space/patch-1
fix 修复heo主题从NotionConfig读取失败Bug
This commit is contained in:
@@ -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 <></>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user