From 6d725b51cb91c87f8e6f46ed0d6a4673d597c993 Mon Sep 17 00:00:00 2001 From: qiube <18969599531@163.com> Date: Fri, 26 Dec 2025 16:21:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E4=BF=AE=E6=AD=A3=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=BB=A3=E7=90=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将代理目标端口从 18082 修正为 8082 - 更新错误提示信息中的端口号以保持一致 --- vite.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index b51322e..8a2c1c7 100644 --- a/vite.config.js +++ b/vite.config.js @@ -27,7 +27,7 @@ export default defineConfig({ port: 3000, proxy: { '/api': { - target: 'http://127.0.0.1:18082', + target: 'http://127.0.0.1:8082', changeOrigin: true, secure: false, ws: true, @@ -35,7 +35,7 @@ export default defineConfig({ configure: (proxy, options) => { proxy.on('error', (err, req, res) => { console.error('代理错误:', err.message) - console.error('请确保后端服务已启动在 http://127.0.0.1:18082') + console.error('请确保后端服务已启动在 http://127.0.0.1:8082') }) } }