|
@@ -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);
|