Bläddra i källkod

[Bug]Fix log request errors (#9791)

labbomb 3 år sedan
förälder
incheckning
52b188b347

+ 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 () => (