From 17a81d641608545682e3f79f7c6090cac48fe81a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 15 Sep 2025 18:10:01 +0800
Subject: [PATCH] feat:去除高亮
---
vite.config.js | 52 ++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 44 insertions(+), 8 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 774b4b6..15dfb45 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-11-12 14:02:19
+ * @LastEditTime: 2025-01-12 01:00:49
* @FilePath: \bigScreen\vite.config.js
* @Description:
*
@@ -16,6 +16,8 @@
import AutoImport from 'unplugin-auto-import/vite'
import basicSsl from '@vitejs/plugin-basic-ssl'
import { fa } from 'element-plus/es/locales.mjs'
+import viteCompression from 'vite-plugin-compression'
+// import vueDevTools from 'vite-plugin-vue-devtools'
export default ({ mode, command }) => {
const env = loadEnv(mode, process.cwd())
@@ -53,7 +55,15 @@
basicSsl(),
AutoImport({
imports: ["vue", "vue-router"], // 自动导入vue和vue-router相关函数
- })
+ }),
+ viteCompression({
+ filter: /\.(js|css|json|txt|ico|svg)(\?.*)?$/i, // 需要压缩的文件
+ threshold: 1024, // 文件容量大于这个值进行压缩
+ algorithm: 'gzip', // 压缩方式
+ ext: 'gz', // 后缀名
+ deleteOriginFile: false, // 压缩后是否删除压缩源文件
+ }),
+ // vueDevTools()
],
css: {
@@ -85,6 +95,19 @@
// overlay:false
// },
proxy: {
+ '/zhyq3Dtile': {
+ // target: 'http://localhost',
+ target: 'https://wrj.shuixiongit.com/zhyq3Dtile',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/zhyq3Dtile/, ''),
+ },
+
+ '/3Dtile/rcmx': {
+ target: 'https://wrj.shuixiongit.com/3Dtile/rcmx',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/3Dtile\/rcmx/, ''),
+ },
+
'/panorama': {
// target: 'http://localhost',
target: 'http://vr.jxpskj.com:180',
@@ -92,18 +115,31 @@
rewrite: path => path.replace(/^\/panorama/, ''),
},
- '/zhyq/mx': {
+ '/zhyq-rc/newMx': {
// target: 'http://localhost',
- target: 'https://wrj.shuixiongit.com/zhyq/mx',
+ target: 'https://wrj.shuixiongit.com/zhyq-rc/newMx',
changeOrigin: true,
- rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
+ rewrite: path => path.replace(/^\/zhyq-rc\/newMx/, ''),
},
- '/zhyqapi': {
+ // '/zhyq-rc/mx': {
+ // // target: 'http://localhost',
+ // target: 'https://wrj.shuixiongit.com/zhyq-rc/mx',
+ // changeOrigin: true,
+ // rewrite: path => path.replace(/^\/zhyq-rc\/mx/, ''),
+ // },
+
+ '/zhyqrcapi': {
// target: 'http://localhost:8082',
- target: 'https://wrj.shuixiongit.com/zhyqapi',
+ target: 'https://wrj.shuixiongit.com/zhyqrcapi',
changeOrigin: true,
- rewrite: path => path.replace(/^\/zhyqapi/, ''),
+ rewrite: path => path.replace(/^\/zhyqrcapi/, ''),
+ },
+
+ '/arcgis117': {
+ target: 'https://wrj.shuixiongit.com/arcgis117',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/arcgis117/, ''),
},
},
},
--
Gitblit v1.9.3