mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 21:28:00 +08:00
fix DAG environment list error (#6551)
This commit is contained in:
parent
de61d65af2
commit
4d0869fcc0
@ -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…
Reference in New Issue
Block a user