测试部署
This commit is contained in:
parent
89abc2768a
commit
018978b954
26
src/App.vue
26
src/App.vue
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue