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