From 22cc8ce22157a32bfcd4ee14d824769c6e318cec Mon Sep 17 00:00:00 2001
From: p-honggang.li <p-honggang.li@pcitc.com>
Date: 星期一, 08 九月 2025 23:30:57 +0800
Subject: [PATCH] 修改取消订单列表展示的问题

---
 vite.config.ts |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index a303c4e..399f173 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -17,10 +17,15 @@
 const viteConfig = ({ mode }: ConfigEnv): UserConfig => {
   let proxy: Record<string, string | ProxyOptions> = {}
   proxy = {
-    '/api/test': {
+    '/api/report': {
       target: 'http://36.133.126.111:7099',
       changeOrigin: true,
-      rewrite: (path) => path.replace(/^\/api\/test/, '/api'),
+      // rewrite: (path) => path.replace(/^\/api/, '/'),
+    },
+    '/api1': {
+      target: 'http://36.133.126.111:7099',
+      changeOrigin: true,
+       rewrite: (path) => path.replace(/^\/api1/, '/api'),
     },
     '/api': {
       // target: 'http://192.168.0.38:8088', // 鏉�
@@ -28,7 +33,8 @@
       // 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:8089',
+       target: 'http://36.133.126.111:7099/trade-api',
       changeOrigin: true, // 鍏佽璺ㄥ煙
       rewrite: (path) => path.replace(/^\/api/, '/'), //杩炴祴璇曠幆澧冭娉ㄩ噴杩欒锛岃繛鍚庣涓汉鍒欐墦寮�
     },
@@ -76,7 +82,7 @@
         '@': path.resolve(__dirname, './src'),
       },
     },
-    base: '/manage/',
+    base: '/trade/',
     server: {
       host: '0.0.0.0',
       port: 1000,

--
Gitblit v1.8.0