From b36d66e090487d54d6664199ca9a807c13fb074b Mon Sep 17 00:00:00 2001 From: DYL0109 <dn18191638832@163.com> Date: 星期五, 18 四月 2025 19:12:05 +0800 Subject: [PATCH] 报警分析优化 --- 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 a1ac844..d7726c7 100644 --- a/zhitan-vue/vite.config.js +++ b/zhitan-vue/vite.config.js @@ -33,15 +33,15 @@ proxy: { // https://cn.vitejs.dev/config/#server-proxy "/dev-api": { - target: "https://demo-ems.zhitancloud.com", + target: "http://localhost:8080", 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:8080", changeOrigin: true, secure: true, - } + }, }, }, //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file -- Gitblit v1.9.3