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) => {