From 65b25fde603de187efc3db827c9d384e35f00014 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期二, 10 六月 2025 15:17:17 +0800 Subject: [PATCH] refactor(system): 优化节假日管理功能 --- zhitan-vue/vite.config.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/zhitan-vue/vite.config.js b/zhitan-vue/vite.config.js index f1a1f6e..ef4c075 100644 --- a/zhitan-vue/vite.config.js +++ b/zhitan-vue/vite.config.js @@ -33,9 +33,14 @@ proxy: { // https://cn.vitejs.dev/config/#server-proxy "/dev-api": { - target: "http://localhost:8080", + target: "http://localhost:8088", changeOrigin: true, - rewrite: (p) => p.replace(/^\/dev-api/, ""), + rewrite: (p) => p.replace(/^\/dev-api/, "/"), + }, + "/prod-api": { + target: "http://localhost:8088", + changeOrigin: true, + secure: true, }, }, }, -- Gitblit v1.9.3