mirror of https://github.com/statping/statping
minor logic change
parent
cc95b017eb
commit
ed27881697
|
@ -161,9 +161,16 @@ export default {
|
||||||
this.treeData = treeData;
|
this.treeData = treeData;
|
||||||
},
|
},
|
||||||
getServiceStatus: async function (dateTime) {
|
getServiceStatus: async function (dateTime) {
|
||||||
this.isLoading = true;
|
let sec = null;
|
||||||
|
|
||||||
await this.$store.dispatch({ type: 'getServiceStatus', payload: dateTime });
|
this.isLoading = true;
|
||||||
|
if (!dateTime) {
|
||||||
|
sec = '';
|
||||||
|
} else {
|
||||||
|
sec = this.convertDateObjToSec(dateTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
await this.$store.dispatch({ type: 'getServiceStatus', payload: sec });
|
||||||
|
|
||||||
this.treeInitialize();
|
this.treeInitialize();
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
|
|
Loading…
Reference in New Issue