Browse Source

fix DAG environment list error (#6551) (#6552)

Co-authored-by: wangyizhi <wangyizhi1_yewu@cmss.chinamobile.com>
2.0.7-release
OS 3 years ago committed by GitHub
parent
commit
f4d826eede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/relatedEnvironment.vue

7
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/relatedEnvironment.vue

@ -109,17 +109,10 @@
} }
}, },
created () { created () {
let stateEnvironmentList = this.store.state.security.environmentListAll || []
if (stateEnvironmentList.length && stateEnvironmentList.length > 0) {
this.environmentList = stateEnvironmentList
this._initEnvironmentOptions(this.workerGroup)
} else {
this._getEnvironmentAll().then(res => { this._getEnvironmentAll().then(res => {
this.environmentList = res this.environmentList = res
this._initEnvironmentOptions(this.workerGroup) this._initEnvironmentOptions(this.workerGroup)
}) })
} }
} }
}
</script> </script>

Loading…
Cancel
Save