This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new e134c63e68 [Bug][Next UI] Fix the branch flow options of the switch 
task is not available. (#9481)
e134c63e68 is described below

commit e134c63e68d89d473b1ed50f1f5999450fb909c5
Author: Amy0104 <[email protected]>
AuthorDate: Wed Apr 13 20:51:43 2022 +0800

    [Bug][Next UI] Fix the branch flow options of the switch task is not 
available. (#9481)
---
 .../src/views/projects/task/components/node/fields/use-switch.ts  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-switch.ts
 
b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-switch.ts
index d65d77ac14..ae3f48dfc7 100644
--- 
a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-switch.ts
+++ 
b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-switch.ts
@@ -16,18 +16,18 @@
  */
 import { ref, watch } from 'vue'
 import { useI18n } from 'vue-i18n'
-import type { IJsonItem } from '../types'
+import { useTaskNodeStore } from '@/store/project/task-node'
 import { queryProcessDefinitionByCode } from 
'@/service/modules/process-definition'
+import type { IJsonItem } from '../types'
 
 export function useSwitch(
   model: { [field: string]: any },
   projectCode: number
 ): IJsonItem[] {
   const { t } = useI18n()
-  const branchFlowOptions = ref([] as any)
-
+  const taskStore = useTaskNodeStore()
+  const branchFlowOptions = ref(taskStore.postTaskOptions as any)
   const loading = ref(false)
-
   const getOtherTaskDefinitionList = async () => {
     if (loading.value) return
     loading.value = true

Reply via email to