加上自動刷新功能
This commit is contained in:
parent
dbdc72d727
commit
5dca5139b6
@ -61,8 +61,11 @@ row_1.appendChild(heading_5);
|
|||||||
row_1.appendChild(heading_6);
|
row_1.appendChild(heading_6);
|
||||||
row_1.appendChild(heading_7);
|
row_1.appendChild(heading_7);
|
||||||
thead.appendChild(row_1);
|
thead.appendChild(row_1);
|
||||||
|
getDate();
|
||||||
|
|
||||||
|
setInterval(getDate, 2500);
|
||||||
// 取得刀表
|
// 取得刀表
|
||||||
axios.get("https://pcredive.ray650128.com/backend/api/record", {
|
/*axios.get("https://pcredive.ray650128.com/backend/api/record", {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Accept': 'application/json'
|
'Accept': 'application/json'
|
||||||
@ -116,7 +119,7 @@ axios.get("https://pcredive.ray650128.com/backend/api/record", {
|
|||||||
//const message = error.response.data.message;
|
//const message = error.response.data.message;
|
||||||
//alert("資料取得失敗");
|
//alert("資料取得失敗");
|
||||||
console.error('資料取得失敗:', error);
|
console.error('資料取得失敗:', error);
|
||||||
});
|
});*/
|
||||||
|
|
||||||
function getDate() {
|
function getDate() {
|
||||||
var dateSplit = selectedDate.value.split("-");
|
var dateSplit = selectedDate.value.split("-");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user