From 5dca5139b61e01625572c3a9990e1bd9ee789e18 Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Wed, 28 Jun 2023 17:46:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E8=87=AA=E5=8B=95=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index 3b0f0b2..bc1cb84 100644 --- a/js/index.js +++ b/js/index.js @@ -61,8 +61,11 @@ row_1.appendChild(heading_5); row_1.appendChild(heading_6); row_1.appendChild(heading_7); 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: { 'Content-Type': 'application/json', 'Accept': 'application/json' @@ -116,7 +119,7 @@ axios.get("https://pcredive.ray650128.com/backend/api/record", { //const message = error.response.data.message; //alert("資料取得失敗"); console.error('資料取得失敗:', error); - }); + });*/ function getDate() { var dateSplit = selectedDate.value.split("-");