测试部署

This commit is contained in:
hongchao 2025-04-27 10:13:18 +08:00
parent 89abc2768a
commit 018978b954
1 changed files with 13 additions and 13 deletions

View File

@ -12,6 +12,10 @@ import { getConfigApi } from '@/utils/config'
export default { export default {
name: 'App', name: 'App',
components: { ThemePicker }, components: { ThemePicker },
created() {
//
getConfigApi()
},
metaInfo() { metaInfo() {
return { return {
title: title:
@ -24,19 +28,15 @@ export default {
}, },
} }
}, },
created() { // mounted() {
// // // const script_1 = document.createElement('script')
getConfigApi() // // 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}`
mounted() { // // script_2.src = `https://api.map.baidu.com/api?type=webgl&v=2.0&ak=${process.env.VUE_APP_BAIDU_MAP_AK}`
// const script_1 = document.createElement('script') // // script_1.async = true
// const script_2 = document.createElement('script') // // document.body.appendChild(script_1)
// script_1.src = `https://api.map.baidu.com/api?v=2.0&ak=${process.env.VUE_APP_BAIDU_MAP_AK}` // // document.body.appendChild(script_2)
// 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)
},
} }
</script> </script>
<style scoped> <style scoped>