修复非本地环境输出ThemeConfig.mode控制台报错undefined

This commit is contained in:
yundabei 2023-12-07 12:04:01 +08:00
parent 358cb28f43
commit aa499207b9
1 changed files with 1 additions and 1 deletions

View File

@ -30,8 +30,8 @@
<script id="theme-config-getter" type="text/javascript">
if (window.location.hostname === 'localhost'||window.location.hostname === '127.0.0.1') {
ThemeConfig['mode'] = "development"
console.log(ThemeConfig.mode)
}
console.log(ThemeConfig.mode)
if (ThemeConfig.mode === "development") {
console.log("Joe3主题配置", ThemeConfig);