From b8440d9a6b1671cdf0c8f06cdaba2f80a8dac1e6 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 13 Nov 2024 14:17:15 +0800
Subject: [PATCH] 退出图标按钮修复
---
vite.config.js | 28 +++++++++++++++++++++++-----
1 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 5af17bd..3ec3704 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-12 14:02:19
* @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,29 @@
port: 668,
https: true,
host: '0.0.0.0',
+ // hmr:{
+ // overlay:false
+ // },
proxy: {
- '/api': {
+ '/panorama': {
// target: 'http://localhost',
- target: 'https://wrj.shuixiongit.com/api',
+ target: 'http://vr.jxpskj.com:180',
changeOrigin: true,
- rewrite: path => path.replace(/^\/api/, ''),
+ 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:15870',
+ target: 'https://wrj.shuixiongit.com/zhyqapi',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/zhyqapi/, ''),
},
},
},
--
Gitblit v1.9.3