修复非本地环境输出ThemeConfig.mode控制台报错undefined
This commit is contained in:
parent
358cb28f43
commit
aa499207b9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue