mirror of https://github.com/openspug/spug
F 修复新增发布配置无法立即使用的问题
parent
e6ab1abe63
commit
1e51885122
|
@ -22,14 +22,12 @@ class SelectApp extends React.Component {
|
|||
}
|
||||
|
||||
componentDidMount() {
|
||||
store.loadDeploys();
|
||||
if (envStore.records.length === 0) {
|
||||
envStore.fetchRecords().then(this._initEnv)
|
||||
} else {
|
||||
this._initEnv()
|
||||
}
|
||||
if (store.deploys.length === 0) {
|
||||
store.loadDeploys()
|
||||
}
|
||||
}
|
||||
|
||||
_initEnv = () => {
|
||||
|
|
Loading…
Reference in New Issue