From 018978b954ee252d2a347fc913f576869056a85d Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Sun, 27 Apr 2025 10:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/App.vue b/src/App.vue index f171baa..ee5021a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,6 +12,10 @@ import { getConfigApi } from '@/utils/config' export default { name: 'App', components: { ThemePicker }, + created() { + // 获取配置信息 + getConfigApi() + }, metaInfo() { return { title: @@ -24,19 +28,15 @@ export default { }, } }, - created() { - // 获取配置信息 - getConfigApi() - }, - mounted() { - // const script_1 = document.createElement('script') - // const script_2 = document.createElement('script') - // script_1.src = `https://api.map.baidu.com/api?v=2.0&ak=${process.env.VUE_APP_BAIDU_MAP_AK}` - // script_2.src = `https://api.map.baidu.com/api?type=webgl&v=2.0&ak=${process.env.VUE_APP_BAIDU_MAP_AK}` - // script_1.async = true - // document.body.appendChild(script_1) - // document.body.appendChild(script_2) - }, + // mounted() { + // // const script_1 = document.createElement('script') + // // const script_2 = document.createElement('script') + // // script_1.src = `https://api.map.baidu.com/api?v=2.0&ak=${process.env.VUE_APP_BAIDU_MAP_AK}` + // // script_2.src = `https://api.map.baidu.com/api?type=webgl&v=2.0&ak=${process.env.VUE_APP_BAIDU_MAP_AK}` + // // script_1.async = true + // // document.body.appendChild(script_1) + // // document.body.appendChild(script_2) + // }, }