Procházet zdrojové kódy

[Fix][UI Next][V1.0.0-Beta] Fix bug where logo disappeared when format dag. (#9864)

Devosend před 3 roky
rodič
revize
52826194a6

+ 10 - 1
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/index.tsx

@@ -274,6 +274,15 @@ export default defineComponent({
       nodeVariables.showModalRef = false
     }
 
+    const layoutSubmit = () => {
+      submit()
+
+      // Refresh task status in workflow instance
+      if (props.instance) {
+        refreshTaskStatus()
+      }
+    }
+
     watch(
       () => props.definition,
       () => {
@@ -321,7 +330,7 @@ export default defineComponent({
         </div>
         <DagAutoLayoutModal
           visible={layoutVisible.value}
-          submit={submit}
+          submit={layoutSubmit}
           cancel={cancel}
           formValue={formValue}
           formRef={formRef}