Wangyizhi1 commented on a change in pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704#discussion_r776235252
##########
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:
Maybe it’s better to use component state to cache project definition list
--
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]