This commit is contained in:
tangly1024
2022-02-07 16:01:50 +08:00
parent fd49b216c5
commit 8020678b8d
2 changed files with 2 additions and 3 deletions

View File

@@ -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('地图加载完成')
})
}
}

View File

@@ -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