|
|
@@ -2,7 +2,7 @@ const ar = async (time) => {
|
|
|
try {
|
|
|
let {data} = await axios({
|
|
|
method: 'get',
|
|
|
- url: 'http://10.3.16.42:2080/gettime?time=' + time,
|
|
|
+ url: '/gettime?time=' + time,
|
|
|
});
|
|
|
console.log(data)
|
|
|
} catch (error) {
|
|
|
@@ -255,7 +255,7 @@ window.onload = async () => {
|
|
|
try {
|
|
|
let {data} = await axios({
|
|
|
method: 'get',
|
|
|
- url: 'http://10.3.16.42:2080/all',
|
|
|
+ url: '/all',
|
|
|
});
|
|
|
xuanr(data)
|
|
|
} catch (error) {
|
|
|
@@ -268,7 +268,7 @@ const getyue = async () => {
|
|
|
let yue = document.querySelector('#search_begindate').value
|
|
|
let {data} = await axios({
|
|
|
method: 'get',
|
|
|
- url: `http://10.3.16.42:2080/getyue?time=${yue}&lasttime=${getlastmonth()}`,
|
|
|
+ url: `/getyue?time=${yue}&lasttime=${getlastmonth()}`,
|
|
|
});
|
|
|
document.querySelector('.tim').innerHTML = `<div class="tim1">#</div><div class="tim1">id</div><div class="tim1">日期</div>`
|
|
|
document.querySelector('#der').innerHTML = ''
|
|
|
@@ -282,7 +282,7 @@ const gettimeer = async () => {
|
|
|
let a = document.querySelector('#datepicker').value
|
|
|
let b = document.querySelector('#datepickerer').value
|
|
|
try {
|
|
|
- let url = 'http://10.3.16.42:2080/setime?starttime=' + a + '&endtime=' + b
|
|
|
+ let url = '/setime?starttime=' + a + '&endtime=' + b
|
|
|
let {data} = await axios({
|
|
|
method: 'get',
|
|
|
url: url,
|