Zt 1 year ago
parent
commit
78bcfa78d3
1 changed files with 6 additions and 6 deletions
  1. 6 6
      reado-app/static/webview/line-wv.html

+ 6 - 6
reado-app/static/webview/line-wv.html

@@ -134,8 +134,8 @@
 						url: "",
 						type: 'GET',
 						beforeSend: function(xhr) {
-							this.url =
-								// `http://192.168.0.41:8081/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}`
+							// this.url =
+							// 	`http://192.168.0.41:8081/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}`
 							this.url = window.location.origin +
 								`/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}` 
 							xhr.setRequestHeader("Authorization", "Bearer " +
@@ -215,10 +215,10 @@
 								url: "",
 								type: 'GET',
 								beforeSend: function(xhr) {
-									this.url =
-										`http://192.168.0.40:8081/chart/getChartById?id=${id}&startTime=${lastTime}&endTime=${currentTime}`
-									// this.url = window.location.origin +
-									// 	`/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}` 
+									// this.url =
+									// 	`http://192.168.0.41:8081/chart/getChartById?id=${id}&startTime=${lastTime}&endTime=${currentTime}`
+									this.url = window.location.origin +
+										`/chart/getChartById?id=${id}&startTime=${startTime}&endTime=${endTime}` 
 									xhr.setRequestHeader("Authorization", "Bearer " +
 										token);
 									xhr.setRequestHeader("token", token);