|
@@ -33,7 +33,7 @@
|
|
|
//初始化weosocket
|
|
//初始化weosocket
|
|
|
initWebSocket(apiToken) {
|
|
initWebSocket(apiToken) {
|
|
|
// 书写接口信息
|
|
// 书写接口信息
|
|
|
- const wsuri = "wss://ky.281570.com?apiToken=" + apiToken;//www.service.com 线上
|
|
|
|
|
|
|
+ const wsuri = "wss://link.281570.com?apiToken=" + apiToken;//www.service.com 线上
|
|
|
// 创建websocket实例
|
|
// 创建websocket实例
|
|
|
Vue.prototype.$websocket = new WebSocket(wsuri);
|
|
Vue.prototype.$websocket = new WebSocket(wsuri);
|
|
|
this.$websocket.onopen = this.websocketonopen; //连接成功
|
|
this.$websocket.onopen = this.websocketonopen; //连接成功
|