From fdd689daf5cf4c2083e6160d932d70e91bad46e1 Mon Sep 17 00:00:00 2001 From: BirtYu <714851131@qq.com> Date: 星期日, 13 四月 2025 22:51:38 +0800 Subject: [PATCH] Merge pull request #59 from zhitan-cloud/jiayu1.0 --- 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 a4c5dbc..a1ac844 100644 --- a/zhitan-vue/vite.config.js +++ b/zhitan-vue/vite.config.js @@ -33,10 +33,15 @@ proxy: { // https://cn.vitejs.dev/config/#server-proxy "/dev-api": { - target: "http://localhost", + target: "https://demo-ems.zhitancloud.com", changeOrigin: true, - rewrite: (p) => p.replace(/^\/dev-api/, ""), + rewrite: (p) => p.replace(/^\/dev-api/, "/prod-api"), }, + "/prod-api": { + target: "https://demo-ems.zhitancloud.com", + changeOrigin: true, + secure: true, + } }, }, //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file -- Gitblit v1.9.3