AJNB 2 months ago
parent
commit
ebded8e441
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/enterprise/MapContainer.vue

+ 3 - 1
src/views/enterprise/MapContainer.vue

@@ -23,6 +23,8 @@
 
 <script>
 import AMapLoader from "@amap/amap-jsapi-loader";
+
+// @ts-ignore
 window._AMapSecurityConfig = {
   // 安全密钥
   securityJsCode: "679d00a7b459e5bd24ec792c8b7083fd",
@@ -123,7 +125,7 @@ export default {
       try {
         // 自动适应显示想显示的范围区域
         this.map.setFitView();
-        // eslint-disable-next-line no-undef
+        // @ts-ignore
         this.marker = new AMap.Marker({
           map: this.map,
           position: [this.form.lng, this.form.lat],