wenhongquan 3 달 전
부모
커밋
c5ed04a423
2개의 변경된 파일18개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 1
      plus-ui-ts/.env.production
  2. 17 10
      plus-ui-ts/src/views/index.vue

+ 1 - 1
plus-ui-ts/.env.production

@@ -37,4 +37,4 @@ VITE_APP_WEBSOCKET = false
 # sse 开关
 VITE_APP_SSE = true
 # 服务器地址 用于文件
-VITE_APP_BASE_HOST = 'http://jtjai.xt.wenhq.top:8083'
+VITE_APP_BASE_HOST = ''

+ 17 - 10
plus-ui-ts/src/views/index.vue

@@ -466,16 +466,23 @@ const reportForm = reactive({
 });
 const reportSeq = ref(0);
 onMounted(() => {
-  const map = new BMapGL.Map('map'); // 创建地图实例
-  const point = new BMapGL.Point(118.879999, 32.016216); // 创建点坐标
-  map.centerAndZoom(point, 14);
-  map.enableScrollWheelZoom(true);
-  bdmap.value = map;
-  map.addEventListener('click', function (e) {
-    const { lng, lat } = e.latlng;
-    console.log(e.latlng);
-  });
-  showMarks();
+  try {
+    const map = new BMapGL.Map('map'); // 创建地图实例
+    const point = new BMapGL.Point(118.879999, 32.016216); // 创建点坐标
+    map.centerAndZoom(point, 14);
+    map.enableScrollWheelZoom(true);
+    bdmap.value = map;
+    map.addEventListener('click', function (e) {
+      const { lng, lat } = e.latlng;
+      console.log(e.latlng);
+    });
+    showMarks();
+
+  }catch (e) {
+
+  }
+
+
   getList();
   getStat();
 });