fix(修复无法获取到值的错误):

This commit is contained in:
anime
2025-01-03 00:41:12 +08:00
parent ebc5bd15bb
commit e405ab9dd7

View File

@@ -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 || {}
/**
* 获取主题配置