init() {
this.pageLoading = true;
Promise.all(this.getTime(), this.getAddress())
.then((time, host) => {
this.loading= false;
this.form.time= time;
this.form.host = host;
})
.catch(() => {
this.loding= false;
});
},
getTime() {
return this.$post("/query");
},
// 查询上次时间同步的地址
getAddress() {
return this.$post("/del");
},
mounted() {
this.init()
},