|
|
@@ -170,7 +170,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
initWebSocket() {
|
|
|
- const wsuri = config.wss + this.user.info.userId
|
|
|
+ const wsuri =
|
|
|
+ location.host.indexOf('dev') > -1
|
|
|
+ ? 'ws://dev.wutongshucloud.com/ws/websocket/'
|
|
|
+ : config.wss + this.user.info.userId
|
|
|
this.websock = new WebSocket(wsuri)
|
|
|
this.websock.onmessage = this.websocketonmessage
|
|
|
// 连接建立时触发
|