From fe2b697a063ab9898af5ec0b49c30ad20274d56e Mon Sep 17 00:00:00 2001 From: gjj <Ganjj@probim.com.cn> Date: Tue, 25 Feb 2025 11:42:12 +0800 Subject: [PATCH] 调整样式,接口对接 --- vite.config.js | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/vite.config.js b/vite.config.js index 037f13a..55294e5 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,3 +1,11 @@ +/* + * @Author: gjj Ganjj@probim.com.cn + * @Date: 2025-02-14 14:32:19 + * @LastEditors: gjj Ganjj@probim.com.cn + * @LastEditTime: 2025-02-24 17:26:18 + * @FilePath: \北京交通大学\vite.config.js + * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + */ /* eslint-disable no-unused-vars */ import path from "path"; import { defineConfig, splitVendorChunkPlugin } from "vite"; @@ -32,7 +40,7 @@ proxy: { "^/api/": { // target: "http://47.117.124.20:2002/", - target: "https://www.probim.cn:7707", + target: "http://8.140.54.245:5000/", rewrite: (path) => path.replace(/^\/api\//, ""), changeOrigin: true, //通过浏览器查看像是"未生效",实际发送给后端的是更改过的Host(与target的host相同) }, -- Gitblit v1.9.3