未验证 提交 4ad17649 编写于 作者: A Amy0104 提交者: GitHub

[Fix] [UI-Next] [V1.0.0-Alpha] Fix the resource options in task node display...

[Fix] [UI-Next] [V1.0.0-Alpha] Fix the resource options in task node display incorrect after creating a new file. (#9269)
上级 3516cd56
......@@ -115,6 +115,13 @@ export const useTaskNodeStore = defineStore({
},
updateMainJar(type: ProgramType, mainJar: IMainJar[]) {
this.mainJars[type] = mainJar
},
init() {
this.preTaskOptions = []
this.postTaskOptions = []
this.preTasks = []
this.resources = []
this.mainJars = {}
}
}
})
......@@ -18,6 +18,7 @@
import { defineComponent, ref, watch, inject, Ref, unref } from 'vue'
import Form from '@/components/form'
import { useTask } from './use-task'
import { useTaskNodeStore } from '@/store/project/task-node'
import type { ITaskData, EditWorkflowDefinition } from './types'
interface IDetailPanel {
......@@ -33,6 +34,9 @@ const NodeDetail = defineComponent({
name: 'NodeDetail',
emits: ['taskTypeChange'],
setup(props, { expose, emit }) {
const taskStore = useTaskNodeStore()
taskStore.init()
const formRef = ref()
const detailData: IDetailPanel = inject('data') || {
projectCode: 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册