diff --git a/config/dev.js b/config/dev.js index 2bf7088..4809d85 100644 --- a/config/dev.js +++ b/config/dev.js @@ -10,8 +10,8 @@ module.exports = { h5: { devServer: { //host: '0.0.0.0', - // host: '192.168.110.53', - host: '192.168.3.104', + host: '192.168.110.53', + // host: '192.168.3.104', port: 10086, // 设置代理来解决 H5 请求的跨域问题 proxy: { diff --git a/src/api/websocket.js b/src/api/websocket.js index 33889af..82eaffb 100644 --- a/src/api/websocket.js +++ b/src/api/websocket.js @@ -42,7 +42,6 @@ const websocket = { this.conn.close(); } this.conn = ws - console.log(this) ws.binaryType = 'arraybuffer' ws.onopen = (e) => { // 关闭定时重连 @@ -192,7 +191,7 @@ export const addMsgListen = (type, call) => { websocket.waitInitCalls.push(() => addMsgListen(type, call)); return; } - console.log('add listen...', type) + // console.log('add listen...', type) const op = websocket.nameOpMap[type]; if (op === undefined) { console.error(`not found listen msg type [${type}] for all type:`, websocket.nameOpMap);