From f645ce9c5579a8309de66507e88a41ea00feb118 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 05 十月 2023 11:00:03 +0800
Subject: [PATCH] #

---
 Monitor-APP/pages/home/home.vue |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 7d387f6..b84ac6c 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -442,10 +442,10 @@
 				this.initPieChart()
 				this.getOther()
 				this.getDate2()
-				// this.getInfo()
-				// this.getError()
-				this.getInfo2()
-				this.getError2()
+				this.getInfo()
+				this.getError()
+				// this.getInfo2()
+				// this.getError2()
 				this.getUrl()
 				this.controller()
 			},1000)
@@ -722,6 +722,9 @@
 			// 鏃ュ巻 鏈嶅姟鍣�
 			getDate2() {
 				let that = this
+				if(that.commonUrl == 'undefined') {
+					return
+				}
 				uni.request({
 					url: that.commonUrl + "/monitor/date",
 					method:"GET",
@@ -729,7 +732,11 @@
 						var res = result.data.data
 						that.calendar = res.year + "骞�" + res.month + "鏈�" + res.day + "鏃� " + res.hour + ":" + res.minute + ":" + res.second + " " + res.week
 						that.currDate = res.year + "/" + res.month + "/" + res.day
+					},
+					fail(res) {
+						console.log(res);
 					}
+					
 				})
 			},
 			
@@ -766,6 +773,9 @@
 			/*************** 鎶樼嚎鍥� *****************************************************************************************************/
 			initlineChart() {
 				let that = this
+				if(that.commonUrl == 'undefined') {
+					return
+				}
 				uni.request({
 					url: that.commonUrl + "/monitor/line/charts",
 					method:'GET',
@@ -784,6 +794,9 @@
 			/*************** 楗煎浘 *****************************************************************************************************/
 			initPieChart() {
 				let that = this
+				if(that.commonUrl == 'undefined') {
+					return
+				}
 				uni.request({
 					url: that.commonUrl + "/monitor/loc/rep",
 					method:'GET',
@@ -802,6 +815,9 @@
 			},
 			getOther() {
 				let that = this
+				if(that.commonUrl == 'undefined') {
+					return
+				}
 				uni.request({
 					url: that.commonUrl + "/monitor/other",
 					data: {

--
Gitblit v1.9.1