From 99a550929bbbf177e3b51f260623c49a3c2e5ffa Mon Sep 17 00:00:00 2001 From: qiangyanwen <508737091@qq.com> Date: Tue, 13 Dec 2022 17:35:56 +0800 Subject: [PATCH] add test --- src/view/Monit.vue | 2 ++ 1 file changed, 2 insertions(+) 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 } + }