智慧园区前端大屏
src/hooks/initMap.js
@@ -12,6 +12,7 @@
const { VITE_APP_BASE } = import.meta.env
import { useMap } from 'store/map'
import { nextTick, onMounted, onUnmounted } from 'vue'
import * as turf from '@turf/turf'
export function readyViewer () {
  const Cesium = DC.getLib('Cesium')
@@ -22,7 +23,8 @@
    nextTick(() => {
      DC.ready({
        baseUrl: `${VITE_APP_BASE}libs/dc-sdk/resources/`
        baseUrl: `${VITE_APP_BASE}libs/dc-sdk/resources/`,
        turf,
      }).then(() => {
        viewer = new DC.Viewer('viewer-container')