0xJacky 2 سال پیش
والد
کامیت
f85aa7a9e9
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      frontend/src/views/nginx_log/NginxLog.vue

+ 4 - 1
frontend/src/views/nginx_log/NginxLog.vue

@@ -29,7 +29,10 @@ function openWs() {
     websocket = ws('/api/nginx_log')
 
     websocket.onopen = () => {
-        websocket.send(JSON.stringify(control))
+        websocket.send(JSON.stringify({
+            ...control,
+            fetch: 'new'
+        }))
     }
 
     websocket.onmessage = (m: any) => {