From 01fd56dde21992da1ab1b5492fe9f68c1be70a74 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 15 十二月 2022 15:42:15 +0800
Subject: [PATCH] #
---
Monitor-APP/pages/index/index.vue | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/Monitor-APP/pages/index/index.vue b/Monitor-APP/pages/index/index.vue
index 86ad6ce..0c65f64 100644
--- a/Monitor-APP/pages/index/index.vue
+++ b/Monitor-APP/pages/index/index.vue
@@ -347,29 +347,25 @@
that.baseUrl = ''
that.baseLedId = ''
}
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUrl
+ this.getUrl()
},
onReady() {
- // 鑾峰緱鍒濆鏁版嵁
- setTimeout(() => {
+ setInterval(() => {
this.initlineChart();
this.initPieChart();
- }, 0);
- setTimeout(() => {
this.getServerData();
this.getOther();
- this.getPakin();
- }, 1000);
- setInterval(() => {
this.getDate();
this.getPakin();
this.getError();
- // this.getYYY();
- // this.getEEE();
this.animation();
+ this.getUrl();
},1000)
},
methods: {
+ getUrl() {
+ this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUrl
+ },
// 鑾峰彇閿欒淇℃伅
getYYY() {
let that = this
--
Gitblit v1.9.1