From 55ff4ad6155248a7c2f391fd4fe75682a311dac0 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期四, 24 七月 2025 16:54:26 +0800 Subject: [PATCH] refactor(svg): 优化 SVG相关组件功能 --- zhitan-vue/vite.config.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zhitan-vue/vite.config.js b/zhitan-vue/vite.config.js index b9d01a0..ef4c075 100644 --- a/zhitan-vue/vite.config.js +++ b/zhitan-vue/vite.config.js @@ -4,7 +4,7 @@ // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => { - mode = "production" + mode = "development" const env = loadEnv(mode, process.cwd()) console.log(mode, "==========env") const { VITE_APP_ENV } = env @@ -33,12 +33,12 @@ proxy: { // https://cn.vitejs.dev/config/#server-proxy "/dev-api": { - target: "https://demo-ems.zhitancloud.com", + target: "http://localhost:8088", changeOrigin: true, - rewrite: (p) => p.replace(/^\/dev-api/, "/prod-api"), + rewrite: (p) => p.replace(/^\/dev-api/, "/"), }, "/prod-api": { - target: "https://demo-ems.zhitancloud.com", + target: "http://localhost:8088", changeOrigin: true, secure: true, }, -- Gitblit v1.9.3