From 5c42bf666a215efafd94725670108bdbbabcfd0d Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Tue, 29 Jul 2025 17:48:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAwebSocket=E7=89=B9=E5=AE=9A=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E6=B7=BB=E5=8A=A0=E7=9B=B4=E6=8E=A5=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/vue.config.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/klp-ui/vue.config.js b/klp-ui/vue.config.js index d45c9c5c..786e2020 100644 --- a/klp-ui/vue.config.js +++ b/klp-ui/vue.config.js @@ -43,6 +43,21 @@ module.exports = { pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' } + }, + // 直接代理WebSocket相关路径 + '/websocket': { + target: `http://localhost:8080`, + changeOrigin: true + }, + // 直接代理测试路径 + '/test': { + target: `http://localhost:8080`, + changeOrigin: true + }, + // 直接代理actuator路径 + '/actuator': { + target: `http://localhost:8080`, + changeOrigin: true } }, disableHostCheck: true