|
|
@ -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> |
|
|
|