Google Street View API with Vue JS

Hello friends, I’m now learning Vue JS and created one project.

I Need 360 Street View system. My system working Jquery and not working Vue JS. Because ı not know write Google API.

I create method for API Trigger. I have no idea where to write this API.

I Have Google Maps API. My API.
script async defer src=“https://maps.googleapis.com/maps/api/js?key=MY-API-KEY&callback=initMap” type=“text/javascript”

Callback go to initMap

My Method.

initMap(newLat, newLng) {
      var lat = parseFloat(newLat);
      var lng = parseFloat(newLng);
      var fenway = { lat: lat, lng: lng };

      var map = new google.maps.Map(document.getElementById("MainGameBoard"), {
        center: fenway,
        zoom: 14
      });

      var panorama = new google.maps.StreetViewPanorama(
        document.getElementById("MainGameMap"),
        {
          position: fenway,
          pov: {
            heading: 34,
            pitch: 10
          }
        }
      );
      map.setStreetView(panorama);
    }