diff --git a/src/view/Monit.vue b/src/view/Monit.vue index 965f201..e6ce9db 100644 --- a/src/view/Monit.vue +++ b/src/view/Monit.vue @@ -112,6 +112,7 @@ const disk = reactive({ }) function GetSytem(){ + console.log("开始连接websocket......") const ws = new WebSocket("ws://127.0.0.1:8000/api/ws") ws.onopen = function () { ws.send("")}; ws.onmessage = function (e){ @@ -153,6 +154,7 @@ function GetSytem(){ disk.data=data_array } + }