0
Imux가 새로 추가되어 외부 소스 (이 경우 Google API)를 사용하려고합니다. 참조 다음 : https://nuxtjs.org/faq/ 나는 스크립트가 내 index.html의 머리에 추가됩니다 참조하십시오. 하지만 어떻게 사용합니까?Nuxt 외부 소스
mounted: function() {
const element = document.getElementById(this.mapName)
const options = {
zoom: 14,
center: new google.maps.LatLng(51.501527, -0.1921837)
}
const map = new google.maps.Map(element, options)
}
하지만 오류를 얻을 :
현재 내가 장착 된 경우에 이것을 가지고
'google' is not defined
감사합니다!