Commit 130a50f9f5145848e664c3a9f58a12762e9c8382
1 parent
ebcdee7f
WebSocket connection 问题修正
Signed-off-by: TanYibin <5491541@qq.com>
Showing
1 changed file
with
5 additions
and
0 deletions
ant-design-vue-jeecg/vue.config.js
@@ -94,6 +94,11 @@ module.exports = { | @@ -94,6 +94,11 @@ module.exports = { | ||
94 | // 'Access-Control-Allow-Origin': '*', | 94 | // 'Access-Control-Allow-Origin': '*', |
95 | // }, | 95 | // }, |
96 | proxy: { | 96 | proxy: { |
97 | + '/wms': { | ||
98 | + target: 'http://localhost:8080', | ||
99 | + ws: false, | ||
100 | + changeOrigin: true | ||
101 | + }, | ||
97 | /* '/api': { | 102 | /* '/api': { |
98 | target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', // mock API接口系统 | 103 | target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', // mock API接口系统 |
99 | ws: false, | 104 | ws: false, |