0xJacky 2 years ago
parent
commit
f85aa7a9e9
1 changed files with 4 additions and 1 deletions
  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 = ws('/api/nginx_log')
 
 
     websocket.onopen = () => {
     websocket.onopen = () => {
-        websocket.send(JSON.stringify(control))
+        websocket.send(JSON.stringify({
+            ...control,
+            fetch: 'new'
+        }))
     }
     }
 
 
     websocket.onmessage = (m: any) => {
     websocket.onmessage = (m: any) => {