Commit 69185a00 authored by wanli's avatar wanli

update

parent d817a246
......@@ -250,8 +250,8 @@ export default {
methods: {
initWebSocket() {
if ("WebSocket" in window) {
this.socket = new WebSocket(`ws://${window.location.host}/ws/v1/notify`);
// this.socket = new WebSocket("ws://localhost:5001/ws/v1/notify");
// this.socket = new WebSocket(`ws://${window.location.host}/ws/v1/notify`);
this.socket = new WebSocket(`ws://${window.location.hostname}:5000/ws/v1/notify`);
this.socket.onopen = () => {
console.log("连接成功");
this.sendMsg();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment