diff --git a/src/views/realTimeChat/realTimeChat.vue b/src/views/realTimeChat/realTimeChat.vue index ab47307..521e380 100644 --- a/src/views/realTimeChat/realTimeChat.vue +++ b/src/views/realTimeChat/realTimeChat.vue @@ -130,8 +130,9 @@ export default { }, socketOnLink() { - const url = document.location.host; - this.socket = new WebSocket("wss://" + url); + const url = "wss://mtest.metavatar.cc/webrtc"; + // const url = document.location.host; + this.socket = new WebSocket(url); this.socket.onopen = (success) => { console.log(success, "连接成功!");