Quellcode durchsuchen

增加xyz_png、xyz_jpg、cartodb等地址添加,修改代理地址拼接逻辑

wdq vor 11 Monaten
Ursprung
Commit
d051649d5a
5 geänderte Dateien mit 246 neuen und 121 gelöschten Zeilen
  1. 13 2
      public/config.js
  2. 150 51
      src/components/map/CesiumMap.vue
  3. 75 64
      src/components/proxy/ConfigManage.vue
  4. 0 1
      src/views/LoginView.vue
  5. 8 3
      vue.config.js

+ 13 - 2
public/config.js

@@ -3,8 +3,19 @@ var systemConfig = {
         lon: 112.52475547556074,
         lat: 37.86090299387082
     },
-    proxyUrl: 'http://121.43.55.7:10011/proxy?servertype={PROXYURL}&token=',
-    single_map: "http://121.43.55.7:2107/"
+    // 121 环境
+    // proxyUrl: 'http://121.43.55.7:10011/proxy/?servertype={PROXYURL}&proxyToken=', // 应替换为121上nginx代理后的代理地址
+    // single_map: "http://121.43.55.7:2112/",
+
+    // 政务网环境
+    // proxyUrl: 'http://10.235.245.174:10011/proxy/?servertype={PROXYURL}&proxyToken=',
+    // proxyUrl_arcgis: 'http://10.235.245.174:10092/proxy/?servertype={PROXYURL}&proxyToken=',
+    // single_map: "http://10.235.245.174:2107/",
+
+    // 本地测试环境
+    proxyUrl: 'http://10.235.245.174:10011/proxy/?servertype={PROXYURL}&proxyToken=',
+    proxyUrl_arcgis: 'http://10.235.245.174:10092/proxy/?servertype={PROXYURL}&proxyToken=',
+    single_map: "http://localhost:2107/", // "http://localhost:2112/",
 }
 
 // var system_name = "数据共享服务系统";

+ 150 - 51
src/components/map/CesiumMap.vue

@@ -1,25 +1,28 @@
 <template>
-  <el-dialog v-if="isShow" :model-value="isShow" title="地理信息" :width="1200" :close-on-click-modal="false"
-    :before-close="handleClose">
+  <el-dialog
+    v-if="isShow"
+    :model-value="isShow"
+    title="地理信息"
+    :width="1200"
+    :close-on-click-modal="false"
+    :before-close="handleClose"
+  >
     <div id="mapBox">
-
       <!--       原来的直接使用的,修改1111111,将第一行放开,第二行注释-->
       <!--       <div id="mapContainer"></div>-->
       <iframe :src="src" frameborder="0"></iframe>
     </div>
-
   </el-dialog>
 </template>
 
 <script>
-
 let viewer = null;
 export default {
   data() {
     return {
       src: systemConfig.single_map,
-      viewer: '',
-      centerPoint: {},
+      viewer: "",
+      centerPoint: {}
       // cesiumConfig: {
       //   animation: false, //动画控制不显示
       //   timeline: false, //时间线不显示
@@ -49,7 +52,7 @@ export default {
       //   scene3DOnly: true, // 仅以3D渲染以节省GPU内存
       //   useBrowserRecommendedResolution: true, // 以浏览器建议的分辨率渲染
       // },
-    }
+    };
   },
   props: {
     isShow: Boolean,
@@ -58,7 +61,7 @@ export default {
     close: Function
   },
   watch: {
-    "isShow": function (val) {
+    isShow: function(val) {
       this.initMap();
     }
   },
@@ -66,7 +69,7 @@ export default {
     let app = this;
     this.$nextTick(() => {
       app.initMap();
-    })
+    });
   },
   methods: {
     initMap() {
@@ -88,48 +91,72 @@ export default {
     },
     loadingEntities(type) {
       let app = this;
-      if (!type || type === '') {
+      if (!type || type === "") {
         return;
       }
       // 加载GeoJson
       if (type === 0) {
-        let obj = { "type": "Feature", "geometry": JSON.parse(app.item), "properties": {} }
+        let obj = {
+          type: "Feature",
+          geometry: JSON.parse(app.item),
+          properties: {}
+        };
         this.addGeoJson(obj);
       }
       // 加载3DTiles
       else if (type === 1) {
-        let url = app.item.url + '/tileset.json'
-        app.add3DTiles(url)
+        let url = app.item.url + "/tileset.json";
+        app.add3DTiles(url, app.item.type, app.item);
       }
       // 加载gltf
       else if (type === 2) {
-        app.addGltf(app.item.url)
+        app.addGltf(app.item.url);
       }
       // 加载底图
       else if (type === 4) {
-        app.addMap(app.item.url, app.item.type);
+        app.addMap(app.item.url, app.item.type, app.item);
       }
     },
     // 加载GeoJson
     addGeoJson(obj) {
       let app = this;
       let res = SkyScenery.GeoJsonDataSource.load(obj, {
-        stroke: SkyScenery.Color.fromCssColorString('#ff0000'),
+        stroke: SkyScenery.Color.fromCssColorString("#ff0000"),
         fill: SkyScenery.Color.RED.withAlpha(0.3),
         strokeWidth: 5,
-        clampToGround: true,
-      })
+        clampToGround: true
+      });
       viewer.dataSources.add(res);
-      res.then(() => {
-        viewer.zoomTo(res, { heading: 2.718565, pitch: -0.415366, roll: 0.0, });
-      }).catch(() => {
-        app.$message({ message: '加载失败', type: 'error' })
-      })
+      res
+        .then(() => {
+          viewer.zoomTo(res, {
+            heading: 2.718565,
+            pitch: -0.415366,
+            roll: 0.0
+          });
+        })
+        .catch(() => {
+          app.$message({ message: "加载失败", type: "error" });
+        });
     },
     // 添加模型
-    add3DTiles(url) {
+    add3DTiles(url, type, item) {
       // http://localhost:8080/map-server/index.html?dataType=threeD&url=http://1.119.143.102:9002/model_data/750/qinghulu/output/tileset.json
-      this.src = systemConfig.single_map + "?dataType=threeD&url=" + url;
+      if (type == "3dtiles") {
+        let t = "";
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map +
+          "?dataType=threeD&mapserverType=3dtiles&url=" +
+          t;
+      } else if (type == "scenelayer") {
+      }
+
       // return;
       // let app = this;
       // let tile = undefined;
@@ -162,9 +189,9 @@ export default {
     // 添加gltf
     addGltf(url) {
       let app = this;
-      if (!url || url == '') {
-        app.$message.warning('请检查模型地址');
-        app.handleClose()
+      if (!url || url == "") {
+        app.$message.warning("请检查模型地址");
+        app.handleClose();
         return;
       }
       let modelObj = new SkyScenery.singleModelBindClick(viewer, {
@@ -176,18 +203,22 @@ export default {
         pitch: -90,
         roll: 0,
         info: {}
-      })
-      let origin = SkyScenery.Cartesian3.fromDegrees(systemConfig.mapCenter.lon, systemConfig.mapCenter.lat, 10);
+      });
+      let origin = SkyScenery.Cartesian3.fromDegrees(
+        systemConfig.mapCenter.lon,
+        systemConfig.mapCenter.lat,
+        10
+      );
       viewer.camera.flyTo({
         destination: origin,
         orientation: {
           heading: SkyScenery.Math.toRadians(0), // 方向
           pitch: SkyScenery.Math.toRadians(-90), // 倾斜角度
-          roll: SkyScenery.Math.toRadians(0),
-        },
+          roll: SkyScenery.Math.toRadians(0)
+        }
       });
     },
-    addMap(url, type) {
+    addMap(url, type, item) {
       // 原来的直接使用的,修改3333333
 
       // viewer.imageryLayers.removeAll(true);
@@ -205,19 +236,83 @@ export default {
       //       })flyToPrimitive
       //   )
       // }
-
-      // 二维加载
-      //       if (type == '') {
-      //         this.src = systemConfig.single_map + "?dataType=twoD&mapType=twoD&mapserverType=arcgis&url=" + url
-      //       } else if (type == 'xyz') {
-      //         this.src = systemConfig.single_map + "?dataType=twoD&mapType=twoD&mapserverType=xyz&url=" + url +"/{z}/{x}/{y}.png";
-      //       }
-
+      let t = "";
       // 三维加载
-      if (type == '') {
-        this.src = systemConfig.single_map + "?dataType=twoD&mapType=threeD&mapserverType=arcgis&url=" + url
-      } else if (type == 'xyz') {
-        this.src = systemConfig.single_map + "?dataType=twoD&mapType=threeD&mapserverType=xyz&url=" + url + "/{z}/{x}/{y}.png";
+      if (type == "geojson") {
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map +
+          "?dataType=twoD&mapserverType=geojson&url=" +
+          t;
+      } else if (type == "arcgis-tile") {
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map +
+          "?dataType=twoD&mapserverType=arcgis-tile&url=" +
+          t;
+      } else if (type == "arcgis-dynamic") {
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map +
+          "?dataType=twoD&mapserverType=arcgis-dynamic&url=" +
+          t;
+      } else if (type == "arcgis-vectortile") {
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map +
+          "?dataType=twoD&mapserverType=arcgis-vectortile&url=" +
+          t;
+      } else if (type == "tdt") {
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map + "?dataType=twoD&mapserverType=tdt&url=" + t;
+      } else if (type.indexOf("xyz") >= 0) {
+        // let t = encodeURIComponent(url + "/{z}/{x}/{y}.png")
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map + "?dataType=twoD&mapserverType=xyz&url=" + t;
+      } else if (type == "cartodb") {
+        // let t = encodeURIComponent(url + "/{z}/{x}/{y}.png")
+        // 原网址
+        // item.param != '' ? t = encodeURIComponent(url + "?" + item.param) : t = encodeURIComponent(url)
+        // 代理网址
+        t = encodeURIComponent(
+          item.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"
+        );
+        this.src =
+          systemConfig.single_map +
+          "?dataType=twoD&mapserverType=cartodb&url=" +
+          t;
       }
     },
     flyToPrimitive(obj) {
@@ -228,19 +323,23 @@ export default {
       let lon = (east + west) / 2;
       let lat = (north + south) / 2;
       viewer.camera.flyTo({
-        destination: SkyScenery.Cartesian3.fromDegrees(SkyScenery.Math.toDegrees(lon), SkyScenery.Math.toDegrees(lat), 338.8293456247198),
+        destination: SkyScenery.Cartesian3.fromDegrees(
+          SkyScenery.Math.toDegrees(lon),
+          SkyScenery.Math.toDegrees(lat),
+          338.8293456247198
+        ),
         orientation: {
           heading: SkyScenery.Math.toRadians(0),
           pitch: SkyScenery.Math.toRadians(-90),
-          roll: 0,
+          roll: 0
         }
-      })
+      });
     },
     handleClose() {
-      this.close(false)
+      this.close(false);
     }
   }
-}
+};
 </script>
 
 <style scoped>

+ 75 - 64
src/components/proxy/ConfigManage.vue

@@ -1,34 +1,34 @@
 <template>
   <div id="configManage">
     <div class="functionBtn">
-      <el-select v-show="proxyType!='INTEGRATION'" v-model="dataType" placeholder="请选择类型" style="margin-right: 12px" default-first-option>
-        <el-option v-for="(item, index) in selectOptions" :key="index" :label="item.label" :value="item.value" ></el-option>
+      <el-select v-show="proxyType != 'INTEGRATION'" v-model="dataType" placeholder="请选择类型" style="margin-right: 12px"
+        default-first-option>
+        <el-option v-for="(item, index) in selectOptions" :key="index" :label="item.label"
+          :value="item.value"></el-option>
       </el-select>
-      <el-button  type="primary" round @click="handleDetailVisible('Add')">新增配置</el-button>
-      <el-button v-show="proxyType!='INTEGRATION'" round @click="viewAllModel">全部预览</el-button>
+      <el-button type="primary" round @click="handleDetailVisible('Add')">新增配置</el-button>
+      <el-button v-show="proxyType != 'INTEGRATION'" round @click="viewAllModel">全部预览</el-button>
       <el-tooltip content="刷新" placement="right">
         <el-button circle @click="refresh"><el-icon><IconPark-refresh /></el-icon></el-button>
       </el-tooltip>
     </div>
     <div class="tableContent">
-      <el-table ref="table"
-                :data="tableData"
-                :max-height="maxHeight"
-                v-loading="loading"
-                @current-change="(row)=>{this.currRow=row}"
-                border
-                stripe
-      >
-        <el-table-column prop="id" label="ID" width="60" align="center"/>
+      <el-table ref="table" :data="tableData" :max-height="maxHeight" v-loading="loading"
+        @current-change="(row) => { this.currRow = row }" border stripe>
+        <el-table-column prop="id" label="ID" width="60" align="center">
+          <template #default="scope">
+            <span>{{ scope.row.id + 1 }}</span>
+          </template>
+        </el-table-column>
         <el-table-column prop="key" label="标题" min-width="100">
           <template #default="scope">
-            <span style="font-weight: bold;font-family: JetBrainsMono-Regular,serif" >{{scope.row.key}}</span>
+            <span style="font-weight: bold;font-family: JetBrainsMono-Regular,serif">{{ scope.row.key }}</span>
           </template>
         </el-table-column>
-        <el-table-column prop="content" label="描述" min-width="120" />
-        <el-table-column prop="proxyUrl" label="链接" min-width="180">
+        <el-table-column prop="content" label="描述" min-width="100" />
+        <el-table-column prop="proxyUrl" label="链接" min-width="350">
           <template #default="scope">
-            <span style="font-family: JetBrainsMono-Regular,serif" >{{ scope.row.proxyUrl}}</span>
+            <span style="font-family: JetBrainsMono-Regular,serif">{{ scope.row.proxyUrl }}</span>
           </template>
         </el-table-column>
         <el-table-column prop="operation" label="操作" min-width="120">
@@ -41,7 +41,7 @@
               <el-icon><IconPark-delete /></el-icon>
               删除
             </el-button>
-            <el-button v-show="proxyType!='INTEGRATION'" size="small" @click="view(scope.row)" >
+            <el-button v-show="proxyType != 'INTEGRATION'" size="small" @click="view(scope.row)">
               <el-icon><IconPark-preview-open /></el-icon>
               预览
             </el-button>
@@ -49,41 +49,20 @@
         </el-table-column>
       </el-table>
       <div class="pagination">
-        <el-pagination background
-                       layout="sizes, prev, pager, next, jumper, ->, total"
-                       v-model:current-page="pageInfo.page"
-                       v-model:page-size="pageInfo.pageSize"
-                       :total="pageInfo.total"
-        />
+        <el-pagination background layout="sizes, prev, pager, next, jumper, ->, total"
+          v-model:current-page="pageInfo.page" v-model:page-size="pageInfo.pageSize" :total="pageInfo.total" />
       </div>
     </div>
   </div>
 
-  <ConfigDetail v-model:show="detailVisible"
-                :operation="detailOperation"
-                :item="currRow"
-                :is-edit="detailIsEdit"
-                :select-options="selectOptions"
-                :proxy-type="proxyType"
-                :data-type="dataType"
-                :refresh="getData"
-  >
+  <ConfigDetail v-model:show="detailVisible" :operation="detailOperation" :item="currRow" :is-edit="detailIsEdit"
+    :select-options="selectOptions" :proxy-type="proxyType" :data-type="dataType" :refresh="getData">
   </ConfigDetail>
 
-  <CesiumMap v-if="isMapShow"
-      :is-show="isMapShow"
-      :type="mapType"
-      :close="closeMap"
-      :item="mapItem"
-  >
+  <CesiumMap v-if="isMapShow" :is-show="isMapShow" :type="mapType" :close="closeMap" :item="mapItem">
   </CesiumMap>
 
-  <AllCesiumMap v-if="isAllMapShow"
-                :is-show="isAllMapShow"
-                :type="allMapType"
-                :close="closeMap"
-                :item="tableData"
-  >
+  <AllCesiumMap v-if="isAllMapShow" :is-show="isAllMapShow" :type="allMapType" :close="closeMap" :item="tableData">
   </AllCesiumMap>
 </template>
 
@@ -138,7 +117,7 @@ export default {
         },
         'publish_threeD': {
           proxyType: 'PUBLISH',
-          dataTypes: [2,3],
+          dataTypes: [2, 3],
         },
         'integration_data': {
           proxyType: 'INTEGRATION',
@@ -191,7 +170,7 @@ export default {
   },
   mounted() {
     let container = document.getElementById("configManage");
-    this.maxHeight = container.clientHeight*0.85;
+    this.maxHeight = container.clientHeight * 0.85;
 
     this.getData();
   },
@@ -208,7 +187,7 @@ export default {
       for (let index of obj.dataTypes) {
         this.selectOptions.push(this.dataTypes[index])
       }
-      if (this.selectOptions.length>0) {
+      if (this.selectOptions.length > 0) {
         this.dataType = this.selectOptions[0].value
       }
     },
@@ -219,7 +198,7 @@ export default {
       this.getData();
     },
     getData() {
-      if (!this.dataType || this.dataType=='') {
+      if (!this.dataType || this.dataType == '') {
         this.configData = [];
         this.tableData = []
         this.pageInfo.total = 0;
@@ -238,24 +217,51 @@ export default {
           let num = 0;
           that.configData = [];
           that.pageInfo.total = 0;
+          // let t = []
           if (res.content) {
             that.configData = JSON.parse(JSON.stringify(res.content))
-            that.configData.forEach(i=>{
+            // let t = []
+            that.configData.forEach(i => {
               i.id = num++;
-              i.proxyUrl = systemConfig.proxyUrl.replace('{PROXYURL}', i.key);
+              // if (i.type == "3dtiles") {
+              if (i.type.indexOf("arcgis") >= 0) {
+                i.proxyUrl = systemConfig.proxyUrl_arcgis.replace('{PROXYURL}', i.key);
+                // if (i.type.indexOf("arcgis-tile") >= 0) t.push(encodeURIComponent(i.proxyUrl + "622067E9-93E5-D8EC-E677-85B58A63C0C7"))
+              }
+              else if (i.type == "cartodb") {
+                let one = systemConfig.proxyUrl.replace('proxy/?', "proxy/{z}/{x}/{y}.png?");
+                i.proxyUrl = one.replace('{PROXYURL}', i.key);
+              }
+              else if (i.type == "xyz_jpg") {
+                let one = systemConfig.proxyUrl.replace('proxy/?', "proxy/{z}/{x}/{y}.jpg?");
+                i.proxyUrl = one.replace('{PROXYURL}', i.key);
+              }
+              else if (i.type == "xyz_png") {
+                let one = systemConfig.proxyUrl.replace('proxy/?', "proxy/{z}/{x}/{y}.png?");
+                i.proxyUrl = one.replace('{PROXYURL}', i.key);
+              }
+              else if (that.dataType == "MODEL") {
+                let one = systemConfig.proxyUrl.replace('proxy/?', "proxy/tileset.json?");
+                i.proxyUrl = one.replace('{PROXYURL}', i.key);
+              }
+              else {
+                i.proxyUrl = systemConfig.proxyUrl.replace('{PROXYURL}', i.key);
+              }
             })
             that.pageInfo.total = that.configData.length;
+            // console.log(JSON.stringify(t))
           }
+
           this.renderTable();
         }
         that.loading = false;
-      }).catch(err=>{
+      }).catch(err => {
         that.loading = false;
-        that.$message({message: err.message, type: 'error'});
+        that.$message({ message: err.message, type: 'error' });
       })
     },
     renderTable() {
-      let start = (this.pageInfo.page-1) * this.pageInfo.pageSize
+      let start = (this.pageInfo.page - 1) * this.pageInfo.pageSize
       let end = this.pageInfo.page * this.pageInfo.pageSize
       this.tableData = this.configData.slice(start, end)
     },
@@ -263,8 +269,8 @@ export default {
       this.detailOperation = operation;
       this.detailVisible = true;
       this.detailIsEdit = true;
-      if (operation==='Add') {
-        this.currRow = {title: '', url: ''};
+      if (operation === 'Add') {
+        this.currRow = { title: '', url: '' };
         this.detailIsEdit = false;
       } else {
         this.currRow = JSON.parse(JSON.stringify(item));
@@ -275,19 +281,23 @@ export default {
       if (type) {
         this.allMapType = type;
         this.isAllMapShow = true;
-      }  else {
+      } else {
         this.$message.error('该类型暂不支持预览');
         return;
       }
     },
     view(item) {
       // 0-GeoJson、1-3DTiles、2-gltf/glb、3-水面、4-地图
+
+      // debugger;
+      // console.log(item)
+      // console.log(this.dataType)
       this.mapItem = JSON.parse(JSON.stringify(item))
       let type = this.mapTypes[this.dataType];
       if (type) {
         this.mapType = type;
         this.isMapShow = true;
-      }  else {
+      } else {
         this.$message.error('该类型暂不支持预览');
         return;
       }
@@ -298,21 +308,21 @@ export default {
     },
     deleteConfig(item) {
       let that = this;
-      this.$msgbox.confirm('确定要删除:'+item.key+'吗?').then(()=>{
+      this.$msgbox.confirm('确定要删除:' + item.key + '吗?').then(() => {
         let params = {
           proxyType: this.proxyType,
           dataType: this.dataType,
           index: item.id
         }
-        that.$request.deleteForm('/proxy_proxy/proxy_api/config/delete', params).then(res=>{
+        that.$request.deleteForm('/proxy_proxy/proxy_api/config/delete', params).then(res => {
           if (res.code === 200) {
-            that.$message({message:'删除成功', type: 'success'});
+            that.$message({ message: '删除成功', type: 'success' });
             that.getData();
           } else {
-            that.$message({message:res.content, type: 'error'});
+            that.$message({ message: res.content, type: 'error' });
           }
-        }).catch(err=>{
-          that.$message({message:err.message, type: 'error'});
+        }).catch(err => {
+          that.$message({ message: err.message, type: 'error' });
         })
       })
 
@@ -332,6 +342,7 @@ export default {
 
   .tableContent {
     margin-top: 1%;
+
     .pagination {
       margin-top: 1%;
       position: relative;

+ 0 - 1
src/views/LoginView.vue

@@ -51,7 +51,6 @@ export default {
           this.$store.state.user = res.content;
           localStorage.setItem("user-token", res.message);
           this.$router.push({name:'home'})
-          console.log(res)
         } else {
           app.$message.error(res.content)
         }

+ 8 - 3
vue.config.js

@@ -6,8 +6,10 @@ module.exports = defineConfig({
     port: 8080,
     proxy: {
       '/proxy_proxy/': {
-        target: 'http://121.43.55.7:10011/proxy',
-        // target: 'http://127.0.0.1:10093',
+        // 121 环境
+        // target: 'http://121.43.55.7:10011/proxy', 
+        // 政务网 环境
+        target: 'http://10.235.245.174:10011/proxy',
         changeOrigin: true,
         secure: false,
         pathRewrite: {
@@ -15,7 +17,10 @@ module.exports = defineConfig({
         }
       },
       '/oauth/': {
-        target: 'http://121.43.55.7:10086/oauth',
+        // 121 环境
+        // target: 'http://121.43.55.7:10086/oauth',
+        // 政务网 环境
+        target: 'http://10.235.245.174:10086/oauth',
         changeOrigin: true,
         pathRewrite: {
           '^/oauth': ''