mirror of https://github.com/openspug/spug
fix monitor page refresh
parent
7cdf37eba5
commit
74a164296e
|
@ -25,7 +25,7 @@ class ComTable extends React.Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
store.fetchRecords();
|
store.fetchRecords();
|
||||||
if (groupStore.records.length === 0) groupStore.fetchRecords();
|
if (groupStore.records.length === 0) groupStore.fetchRecords();
|
||||||
if (hostStore.records.length === 0) {
|
if (!hostStore.records || hostStore.records.length === 0) {
|
||||||
hostStore.fetchRecords().then(this._handleHosts)
|
hostStore.fetchRecords().then(this._handleHosts)
|
||||||
} else {
|
} else {
|
||||||
this._handleHosts()
|
this._handleHosts()
|
||||||
|
|
Loading…
Reference in New Issue