智慧园区前端大屏
shuishen
2024-12-25 6f50133aa1718bd9f3725444ce0e426a373aea10
临川项目配置基础路径调整;
加载模型配置;
4 files modified
30 ■■■■ changed files
.env.development 4 ●●●● patch | view | raw | blame | history
.env.production 2 ●●● patch | view | raw | blame | history
src/pages/map/components/scomponents/layersControl.vue 4 ●●●● patch | view | raw | blame | history
vite.config.js 20 ●●●● patch | view | raw | blame | history
.env.development
@@ -2,7 +2,7 @@
 # @Author: shuishen 1109946754@qq.com
 # @Date: 2024-10-25 11:21:24
 # @LastEditors: shuishen 1109946754@qq.com
 # @LastEditTime: 2024-10-25 11:37:37
 # @LastEditTime: 2024-12-25 15:10:55
 # @FilePath: \bigScreen\.env.development
 # @Description: 
 # 
@@ -16,4 +16,4 @@
VITE_APP_API=/zhyqhbapi
#页面基础路径
VITE_APP_BASE=/zhyq/
VITE_APP_BASE=/zhyq-lc/
.env.production
@@ -17,7 +17,7 @@
VITE_APP_API=/zhyqhbapi
#页面基础路径
VITE_APP_BASE=/zhyq/
VITE_APP_BASE=/zhyq-lc/
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
src/pages/map/components/scomponents/layersControl.vue
@@ -676,10 +676,10 @@
        if (!addTileLayers[item.layerName]) {
          // addTileLayers[item.layerName] = []
          // let tile = window.$viewer.delegate.scene.primitives.add(new window.$Cesium.Cesium3DTileset({
          //   url: '/zhyq/mx/tile_01/tileset.json',
          //   url: '/zhyq-lc/mx/tile_01/tileset.json',
          // }))
          //   url: '/zhyq/mx/tile_01/tileset.json',
          //   url: '/zhyq-lc/mx/tile_01/tileset.json',
          // }), 121323)
          // item.urlData.forEach(i => {
vite.config.js
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-25 10:56:27
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-12-24 14:52:51
 * @LastEditTime: 2024-12-25 15:16:02
 * @FilePath: \bigScreen\vite.config.js
 * @Description: 
 * 
@@ -109,19 +109,19 @@
          rewrite: path => path.replace(/^\/panorama/, ''),
        },
        '/zhyq/newMx': {
        '/zhyq-lc/newMx': {
          // target: 'http://localhost',
          target: 'https://wrj.shuixiongit.com/zhyq/newMx',
          target: 'https://wrj.shuixiongit.com/zhyq-lc/newMx',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyq\/newMx/, ''),
          rewrite: path => path.replace(/^\/zhyq-lc\/newMx/, ''),
        },
        // '/zhyq/mx': {
        //   // target: 'http://localhost',
        //   target: 'https://wrj.shuixiongit.com/zhyq/mx',
        //   changeOrigin: true,
        //   rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
        // },
        '/zhyq-lc/mx': {
          // target: 'http://localhost',
          target: 'https://wrj.shuixiongit.com/zhyq-lc-mx/mx',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/zhyq-lc\/mx/, ''),
        },
        '/zhyqhbapi': {
          // target: 'http://localhost:8082',