AJNB 2 月之前
父節點
當前提交
bd229e1c6c
共有 2 個文件被更改,包括 4 次插入1 次删除
  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],
         });