Browse Source

修复bug6-25am 合并

liujiejie 11 tháng trước cách đây
mục cha
commit
c36133cc74
3 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. BIN
      dist.zip
  2. 1 2
      src/components/map/index.vue
  3. 2 2
      vue.config.js

BIN
dist.zip


+ 1 - 2
src/components/map/index.vue

@@ -168,12 +168,11 @@ export default {
     },
     },
   },
   },
   mounted() {
   mounted() {
-
     this.map = new Map({
     this.map = new Map({
       target: "map",
       target: "map",
       view: new View({
       view: new View({
         projection: "EPSG:4326",
         projection: "EPSG:4326",
-        center: fromLonLat([116.389, 39.903]), //地图中心 
+        center: fromLonLat([116.389, 39.903]), //地图中心
         zoom: 5, //默认缩放级别
         zoom: 5, //默认缩放级别
         minZoom: 5, //最小缩放级别
         minZoom: 5, //最小缩放级别
         maxZoom: 15, //最大缩放级别
         maxZoom: 15, //最大缩放级别

+ 2 - 2
vue.config.js

@@ -65,9 +65,9 @@ module.exports = {
     proxy: {
     proxy: {
       "/api": {
       "/api": {
         // target: "http://192.168.5.4:16200", // 石月
         // target: "http://192.168.5.4:16200", // 石月
-        // target: "http://192.168.50.235:16200", //内网
+        target: "http://192.168.50.235:16200", //内网
         // target: "http://192.168.5.15:16200",
         // target: "http://192.168.5.15:16200",
-        target: "http://106.120.102.238:16600", //外网
+        // target: "http://106.120.102.238:16600", //外网
         changeOrigin: true,
         changeOrigin: true,
         pathRewrite: {
         pathRewrite: {
           "^/api": "", // 需要regit write重写的,
           "^/api": "", // 需要regit write重写的,