From 6f50133aa1718bd9f3725444ce0e426a373aea10 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 25 Dec 2024 15:22:49 +0800
Subject: [PATCH] 临川项目配置基础路径调整; 加载模型配置;
---
src/pages/map/components/scomponents/layersControl.vue | 4 ++--
.env.development | 4 ++--
.env.production | 2 +-
vite.config.js | 20 ++++++++++----------
4 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/.env.development b/.env.development
index c76556c..666cc64 100644
--- a/.env.development
+++ b/.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/
diff --git a/.env.production b/.env.production
index 7c8da06..984691d 100644
--- a/.env.production
+++ b/.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
diff --git a/src/pages/map/components/scomponents/layersControl.vue b/src/pages/map/components/scomponents/layersControl.vue
index 89f3dd6..05e9fd0 100644
--- a/src/pages/map/components/scomponents/layersControl.vue
+++ b/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 => {
diff --git a/vite.config.js b/vite.config.js
index c9be228..3303902 100644
--- a/vite.config.js
+++ b/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',
--
Gitblit v1.9.3