未验证 提交 f4d826ee 编写于 作者: O OS 提交者: GitHub

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

Co-authored-by: Nwangyizhi <wangyizhi1_yewu@cmss.chinamobile.com>
上级 4723d64d
...@@ -109,17 +109,10 @@ ...@@ -109,17 +109,10 @@
} }
}, },
created () { created () {
let stateEnvironmentList = this.store.state.security.environmentListAll || [] this._getEnvironmentAll().then(res => {
this.environmentList = res
if (stateEnvironmentList.length && stateEnvironmentList.length > 0) {
this.environmentList = stateEnvironmentList
this._initEnvironmentOptions(this.workerGroup) this._initEnvironmentOptions(this.workerGroup)
} else { })
this._getEnvironmentAll().then(res => {
this.environmentList = res
this._initEnvironmentOptions(this.workerGroup)
})
}
} }
} }
</script> </script>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册