AJNB hace 2 meses
padre
commit
bd229e1c6c
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. 3 0
      package.json
  2. 1 1
      src/views/enterprise/MapContainer.vue

+ 3 - 0
package.json

@@ -5,6 +5,8 @@
   "author": "若依",
   "license": "MIT",
   "scripts": {
+    "serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
+    "build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
     "dev": "vue-cli-service serve",
     "build:prod": "vue-cli-service build",
     "build:stage": "vue-cli-service build --mode staging",
@@ -36,6 +38,7 @@
     "url": "https://gitee.com/y_project/RuoYi-Cloud.git"
   },
   "dependencies": {
+    "@amap/amap-jsapi-loader": "^1.0.1",
     "@riophae/vue-treeselect": "0.4.0",
     "axios": "0.24.0",
     "clipboard": "2.0.8",

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

@@ -24,7 +24,7 @@ export default {
         this.map = new AMap.Map("container", {
           viewMode: "3D",
           zooms: [4, 18],
-          zoom: 6,
+          zoom: 15,
           center: [125.3245, 43.886841],
         });