From 1f97edd413b498bdeff3199163672c38b3d5ae93 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 1 Jul 2025 10:37:00 +0800 Subject: [PATCH] =?UTF-8?q?config=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vite.config.js b/vite.config.js index f1e3d78..f7074ec 100644 --- a/vite.config.js +++ b/vite.config.js @@ -64,14 +64,15 @@ export default defineConfig(({ mode }) => { host: true, open: true, proxy: { - '/api': { - target: 'http://192.168.0.38:58080', // 郝志权测试环境 + '/robot-screen-api': { + // target: 'http://192.168.0.38:21999', // 郝志权测试环境 + target: 'http://192.168.0.14:58080', // 测试环境 changeOrigin: true, - rewrite: (p) => p.replace(/^\/api/, ''), + rewrite: (p) => p.replace(/^\/robot-screen-api/, ''), }, '/third-party': { // target: 'http://127.0.0.1:8089', - target: 'https://cs.fydl.cloud:39979/icvs2/', + target: 'http://112.31.70.193:1854/icvs2/', changeOrigin: true, rewrite: (p) => p.replace(/^\/third-party/, ''), },