diff --git a/themes/Medium/components/RevolverMaps.js b/themes/Medium/components/RevolverMaps.js index a43e7dc0..57d2cccc 100644 --- a/themes/Medium/components/RevolverMaps.js +++ b/themes/Medium/components/RevolverMaps.js @@ -3,7 +3,6 @@ import { useEffect, useState } from 'react' export default function RevolverMaps () { const [load, changeLoad] = useState(false) useEffect(() => { - console.log(load) if (!load) { initRevolverMaps() changeLoad(true) @@ -17,7 +16,7 @@ function initRevolverMaps () { Promise.all([ loadExternalResource('https://rf.revolvermaps.com/0/0/8.js?i=5jnp1havmh9&m=0&c=ff0000&cr1=ffffff&f=arial&l=33') ]).then(() => { - console.log('地图加载完成', document.getElementById('revolvermaps')) + console.log('地图加载完成') }) } } diff --git a/themes/Medium/config_medium.js b/themes/Medium/config_medium.js index fb6808e0..4d13d756 100644 --- a/themes/Medium/config_medium.js +++ b/themes/Medium/config_medium.js @@ -11,6 +11,6 @@ const CONFIG_MEDIUM = { MENU_SEARCH: true, // 显示搜索 // Widget - WIDGET_REVOLVER_MAPS: process.env.WIDGET_REVOLVER_MAPS || 'false' // 地图插件 + WIDGET_REVOLVER_MAPS: process.env.NEXT_PUBLIC_WIDGET_REVOLVER_MAPS || 'false' // 地图插件 } export default CONFIG_MEDIUM