فهرست منبع

去除地图引入文件、npm 包

XueNing 5 ماه پیش
والد
کامیت
5f6bf0b94d
4فایلهای تغییر یافته به همراه1 افزوده شده و 17 حذف شده
  1. 0 7
      index.html
  2. 0 1
      package.json
  3. 0 8
      pnpm-lock.yaml
  4. 1 1
      src/views/extension/map/amapTrack.vue

+ 0 - 7
index.html

@@ -6,13 +6,6 @@
     <link rel="icon" href="/logo.png" />
     <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> -->
     <title></title>
-    <!-- TODO:地图组件完成以后删除掉 -->
-    <script src="//api.map.baidu.com/api?v=3.0&ak=1V4mSproiau7AxsArSNKBWqR0ZiyMKNh"></script>
-    <script type="text/javascript" src="//api.map.baidu.com/library/LuShu/1.2/src/LuShu_min.js"></script>
-
-    <script type="text/javascript">
-      window._AMapSecurityConfig = { securityJsCode: 'b03b80f96a4b9f94ed2cfc750e93ff75' }
-    </script>
   </head>
   <body>
     <div id="app"></div>

+ 0 - 1
package.json

@@ -14,7 +14,6 @@
     "micro": "plop micro"
   },
   "dependencies": {
-    "@amap/amap-jsapi-loader": "^1.0.1",
     "@element-plus/icons-vue": "^2.3.1",
     "@fskj-admin/core": "^1.2.14",
     "@fskj-admin/micro": "^0.1.0",

+ 0 - 8
pnpm-lock.yaml

@@ -8,9 +8,6 @@ importers:
 
   .:
     dependencies:
-      '@amap/amap-jsapi-loader':
-        specifier: ^1.0.1
-        version: 1.0.1
       '@element-plus/icons-vue':
         specifier: ^2.3.1
         version: 2.3.1(vue@3.4.29(typescript@5.3.3))
@@ -165,9 +162,6 @@ importers:
 
 packages:
 
-  '@amap/amap-jsapi-loader@1.0.1':
-    resolution: {integrity: sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw==}
-
   '@ampproject/remapping@2.3.0':
     resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
     engines: {node: '>=6.0.0'}
@@ -4229,8 +4223,6 @@ packages:
 
 snapshots:
 
-  '@amap/amap-jsapi-loader@1.0.1': {}
-
   '@ampproject/remapping@2.3.0':
     dependencies:
       '@jridgewell/gen-mapping': 0.3.5

+ 1 - 1
src/views/extension/map/amapTrack.vue

@@ -73,7 +73,7 @@ const renderTrackMap = () => {
         strokeWeight: 6 // 线宽
       })
       // 小车移动回调
-      carMarker.on('moving', e => {
+      carMarker.on('moving', (e: any) => {
         passedPolyline.setPath(e.passedPath)
       })
       // 地图自适应