From 8020678b8d300803320ed10f8540415f15fb2ad2 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 7 Feb 2022 16:01:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Medium/components/RevolverMaps.js | 3 +-- themes/Medium/config_medium.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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