diff --git a/src/views/realTimeMonitor/components/infoDialog.vue b/src/views/realTimeMonitor/components/infoDialog.vue index 06500e9..39854bf 100644 --- a/src/views/realTimeMonitor/components/infoDialog.vue +++ b/src/views/realTimeMonitor/components/infoDialog.vue @@ -102,7 +102,7 @@ export default { this.timer = window.setInterval(() => { this.getNewListData(this.zztermid); this.i++; - }, 10000); + }, 5000); }) .catch((err) => {}); }, @@ -121,7 +121,7 @@ export default { this.$message.success("装置信息已更新"); clearInterval(this.timer); this.loading = false; - } else if (this.i > 9) { + } else if (this.i > 5) { this.i = 0; this.$message.warning("暂无响应,请稍后再试!"); clearInterval(this.timer); @@ -148,6 +148,7 @@ export default { }, handleclose() { this.isShow = false; + this.loading = false; this.i = 0; clearInterval(this.timer); this.timer = null;