瀏覽代碼

[Bug]Fix log request errors (#9791)

labbomb 3 年之前
父節點
當前提交
52b188b347
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx

+ 13 - 0
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx

@@ -284,6 +284,19 @@ export default defineComponent({
       }
     )
 
+    watch(
+      () => nodeVariables.showModalRef,
+      () => {
+        if (!nodeVariables.showModalRef) {
+          nodeVariables.row = {}
+          nodeVariables.logRef = ''
+          nodeVariables.logLoadingRef = true
+          nodeVariables.skipLineNum = 0
+          nodeVariables.limit = 1000
+        }
+      }
+    )
+
     onBeforeUnmount(() => clearInterval(statusTimerRef.value))
 
     return () => (