From 14da39a3d869f252bf235b49c634c83998bc5660 Mon Sep 17 00:00:00 2001 From: seatonwan9 Date: 星期四, 28 八月 2025 18:12:42 +0800 Subject: [PATCH] 提交源码 --- vite.config.ts | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index e83364b..497f4c7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,13 +17,19 @@ const viteConfig = ({ mode }: ConfigEnv): UserConfig => { let proxy: Record<string, string | ProxyOptions> = {} proxy = { + '/api/test': { + target: 'http://36.133.126.111:7099', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api\/test/, '/api'), + }, '/api': { // target: 'http://192.168.0.38:8088', // 鏉� // target: 'http://10.88.211.191:8088', // 鏉� // target:'http://10.209.233.16/admin',//淇″垱姝e紡 // target: 'http://36.133.126.111:7099/api', //娴嬭瘯 // target: 'https://zynlpt.ccccltd.cn/admin', // 姝e紡 (瑕佹墦寮�changeOrigin鍜宺ewrite) - target: 'http://localhost:8080', + // target: 'http://localhost:8080', + target: 'http://36.133.126.111:7099/trade-api', changeOrigin: true, // 鍏佽璺ㄥ煙 rewrite: (path) => path.replace(/^\/api/, '/'), //杩炴祴璇曠幆澧冭娉ㄩ噴杩欒锛岃繛鍚庣涓汉鍒欐墦寮� }, -- Gitblit v1.8.0