F 修复新增发布配置无法立即使用的问题

pull/22/head
vapao 2020-01-19 16:13:48 +08:00
parent e6ab1abe63
commit 1e51885122
1 changed files with 1 additions and 3 deletions

View File

@ -22,14 +22,12 @@ class SelectApp extends React.Component {
} }
componentDidMount() { componentDidMount() {
store.loadDeploys();
if (envStore.records.length === 0) { if (envStore.records.length === 0) {
envStore.fetchRecords().then(this._initEnv) envStore.fetchRecords().then(this._initEnv)
} else { } else {
this._initEnv() this._initEnv()
} }
if (store.deploys.length === 0) {
store.loadDeploys()
}
} }
_initEnv = () => { _initEnv = () => {