mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-18 15:09:34 +00:00
fix(修复无法获取到值的错误):
This commit is contained in:
@@ -6,7 +6,7 @@ import { useRouter } from 'next/router'
|
||||
import { getQueryParam, getQueryVariable, isBrowser } from '../lib/utils'
|
||||
|
||||
// 在next.config.js中扫描所有主题
|
||||
export const { THEMES = [] } = getConfig().publicRuntimeConfig
|
||||
export const { THEMES = [] } = getConfig()?.publicRuntimeConfig || {}
|
||||
|
||||
/**
|
||||
* 获取主题配置
|
||||
|
||||
Reference in New Issue
Block a user