Wangyizhi1 commented on a change in pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704#discussion_r776230167



##########
File path: 
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/dependItemList.vue
##########
@@ -137,15 +140,21 @@
       },
       _getProcessByProjectCode (code) {
         return new Promise((resolve, reject) => {
-          this.store.dispatch('dag/getProcessByProjectCode', code).then(res => 
{
-            let definitionList = _.map(_.cloneDeep(res), v => {
-              return {
-                value: v.processDefinition.code,
-                label: v.processDefinition.name
-              }
+          let definitionCacheList = 
JSON.parse(sessionStorage.getItem(projectCodePrefix + code))
+          if (definitionCacheList) {

Review comment:
       If sessionStorage is used here, and the user adds a workflow after 
caching, the drop-down list may not display the new workflow?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to