Commit 4b0390b83703d2b61eb42f9b4eda518f80158bdc

Authored by 谭毅彬
1 parent 7f479fd0

WebSocket connection 问题修复

Signed-off-by: TanYibin <5491541@qq.com>
ant-design-vue-jeecg/vue.config.js
... ... @@ -83,7 +83,14 @@ module.exports = {
83 83 },
84 84  
85 85 devServer: {
  86 + host: '0.0.0.0',
86 87 port: 3000,
  88 + client: {
  89 + webSocketURL: 'ws://0.0.0.0:3000/ws'
  90 + },
  91 + headers: {
  92 + 'Access-Control-Allow-Origin': '*'
  93 + },
87 94 // hot: true,
88 95 // disableHostCheck: true,
89 96 // overlay: {
... ... @@ -94,7 +101,7 @@ module.exports = {
94 101 // 'Access-Control-Allow-Origin': '*',
95 102 // },
96 103 proxy: {
97   - ws: false,
  104 + // ws: false,
98 105 /* '/wms': {
99 106 target: 'http://localhost:8080',
100 107 ws: false,
... ...