From 7bcdaba7faad85bf16bf0f2a1dbd3e390bdb15dd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 05 Nov 2024 21:15:40 +0800
Subject: [PATCH] 救援队伍统计、应急空间统计、风险源统计图表样式初步调整,园区概况布局调整 倾斜模型加载配置微调后续看加载效果 企业名录样式调整
---
vite.config.js | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 5af17bd..24abc70 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-01 11:15:36
* @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,22 @@
port: 668,
https: true,
host: '0.0.0.0',
+ // hmr:{
+ // overlay:false
+ // },
proxy: {
- '/api': {
+ '/zhyq/mx': {
// target: 'http://localhost',
- target: 'https://wrj.shuixiongit.com/api',
+ target: 'https://wrj.shuixiongit.com/zhyq/mx',
changeOrigin: true,
- rewrite: path => path.replace(/^\/api/, ''),
+ rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
+ },
+
+ '/zhyqapi': {
+ // target: 'http://localhost',
+ target: 'https://wrj.shuixiongit.com/zhyqapi',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/zhyqapi/, ''),
},
},
},
--
Gitblit v1.9.3