From 35019ea45adb0f67bffd7a5c5562343385906c03 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Tue, 25 Jun 2024 19:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9vit=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index 439ab923..16f03886 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,9 +16,11 @@ export default ({ mode, command }) => { // hy // target: 'http://192.168.3.12:13000', // xiaohei - // target: 'http://192.168.3.18:13000', + // target: 'http://192.168.3.65:13000', // lmy // target: 'http://192.168.10.123:8889', + // cg + // target: 'http://192.168.3.2:13000', // target: 'http://192.168.10.101:8888', // 老zyc // target: 'http://192.168.10.75:8777', @@ -33,10 +35,16 @@ export default ({ mode, command }) => { // target: 'http://192.168.10.29:13000', // target: 'http://192.168.3.5:13000',//? // target: 'http://h5uapi.huitongys.com', - target: 'http://test.api.huo5you.com', + target: 'http://test.api.huo5you.com', changeOrigin: true, rewrite: path => path.replace(/^\/api/, ''), }, + '/imgapi': { + target: 'http://127.0.0.1:38088', + changeOrigin: true, + rewrite: path => path.replace(/^\/imgapi/, ''), + logLevel: 'debug', // 启用详细日志 + }, }, }, resolve: {