From f55ea1cfc0b5f60b01552e8b96f95e8a33c45bb8 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 15 Nov 2024 09:12:53 +0800
Subject: [PATCH] Merge branch 'main' of http://139.196.74.78:10010/r/zhyq/bigScreen
---
vite.config.js | 35 ++++++++++++++++++++++++++++++-----
1 files changed, 30 insertions(+), 5 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 5af17bd..ee27ecf 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-10-29 21:44:48
+ * @LastEditTime: 2024-11-13 19:15:01
* @FilePath: \bigScreen\vite.config.js
* @Description:
*
@@ -15,6 +15,7 @@
import AutoImport from 'unplugin-auto-import/vite'
import basicSsl from '@vitejs/plugin-basic-ssl'
+import { fa } from 'element-plus/es/locales.mjs'
export default ({ mode, command }) => {
const env = loadEnv(mode, process.cwd())
@@ -24,7 +25,7 @@
// 根据是否生产环境,动态设置压缩配置
const buildConfig = {
- outDir: 'manage',
+ outDir: 'zhyq',
target: 'esnext',
minify: isProd ? 'terser' : 'esbuild', // 根据环境选择压缩工具
}
@@ -80,12 +81,36 @@
port: 668,
https: true,
host: '0.0.0.0',
+ // hmr:{
+ // overlay:false
+ // },
proxy: {
- '/api': {
+ '/zhyq3Dtile': {
// target: 'http://localhost',
- target: 'https://wrj.shuixiongit.com/api',
+ target: 'https://wrj.shuixiongit.com/zhyq3Dtile',
changeOrigin: true,
- rewrite: path => path.replace(/^\/api/, ''),
+ rewrite: path => path.replace(/^\/zhyq3Dtile/, ''),
+ },
+
+ '/panorama': {
+ // target: 'http://localhost',
+ target: 'http://vr.jxpskj.com:180',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/panorama/, ''),
+ },
+
+ '/zhyq/mx': {
+ // target: 'http://localhost',
+ target: 'https://wrj.shuixiongit.com/zhyq/mx',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
+ },
+
+ '/zhyqapi': {
+ // target: 'http://localhost:8082',
+ target: 'https://wrj.shuixiongit.com/zhyqapi',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/zhyqapi/, ''),
},
},
},
--
Gitblit v1.9.3