From f789d1d5841d0f8feefc16570189304c9d9204a9 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 31 Oct 2024 18:31:40 +0800
Subject: [PATCH] 加载倾斜模型 图层组件封装 路由相关调整 项目基础路径调整
---
vite.config.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 6ea53e3..3ddbd7c 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-30 16:06:44
+ * @LastEditTime: 2024-10-31 18:23:13
* @FilePath: \bigScreen\vite.config.js
* @Description:
*
@@ -24,7 +24,7 @@
// 根据是否生产环境,动态设置压缩配置
const buildConfig = {
- outDir: 'manage',
+ outDir: 'zhyq',
target: 'esnext',
minify: isProd ? 'terser' : 'esbuild', // 根据环境选择压缩工具
}
@@ -81,11 +81,11 @@
https: true,
host: '0.0.0.0',
proxy: {
- '/api': {
+ '/zhyqapi': {
// target: 'http://localhost',
target: 'https://wrj.shuixiongit.com/zhyqapi',
changeOrigin: true,
- rewrite: path => path.replace(/^\/api/, ''),
+ rewrite: path => path.replace(/^\/zhyqapi/, ''),
},
},
},
--
Gitblit v1.9.3