From 130a50f9f5145848e664c3a9f58a12762e9c8382 Mon Sep 17 00:00:00 2001 From: TanYibin <5491541@qq.com> Date: Fri, 10 Mar 2023 09:35:21 +0800 Subject: [PATCH] WebSocket connection 问题修正 --- ant-design-vue-jeecg/vue.config.js | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/ant-design-vue-jeecg/vue.config.js b/ant-design-vue-jeecg/vue.config.js index 961b64a..1ed7168 100644 --- a/ant-design-vue-jeecg/vue.config.js +++ b/ant-design-vue-jeecg/vue.config.js @@ -94,6 +94,11 @@ module.exports = { // 'Access-Control-Allow-Origin': '*', // }, proxy: { + '/wms': { + target: 'http://localhost:8080', + ws: false, + changeOrigin: true + }, /* '/api': { target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', // mock API接口系统 ws: false, -- libgit2 0.22.2