diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx index 7cfe800af3..42359f07fb 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/start-modal.tsx @@ -186,8 +186,12 @@ export default defineComponent({ }) watch( - () => props.row, - () => getStartParamsList(props.row.code) + () => props.show, + () => { + if (props.show) { + getStartParamsList(props.row.code) + } + } ) return { @@ -381,7 +385,7 @@ export default defineComponent({ ) : ( {this.startParamsList.map((item, index) => ( - + { state.importForm.name = '' state.importForm.file = '' @@ -237,9 +241,14 @@ export function useModal( } const getStartParamsList = (code: number) => { + if (cachedStartParams[code]) { + variables.startParamsList = cloneDeep(cachedStartParams[code]) + return + } queryProcessDefinitionByCode(code, variables.projectCode).then( (res: any) => { variables.startParamsList = res.processDefinition.globalParamList + cachedStartParams[code] = cloneDeep(variables.startParamsList) } ) }