Spaces:
Sleeping

doluong6 commited on
Commit
bf07052
·
verified ·
1 Parent(s): a40aaab

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +2 -2
static/script.js CHANGED
@@ -72,9 +72,9 @@ async function hienThiSoPYCHoanThanh() {
72
  const data = await res.json();
73
 
74
  if (res.ok && data.tong_so_hoan_thanh !== undefined) {
75
- document.getElementById("completedRequests").textContent = data.tong_so_hoan_thanh;
76
  } else {
77
- document.getElementById("completedRequests").textContent = "Không tải được";
78
  }
79
  } catch (err) {
80
  console.error("Lỗi khi gọi API hoàn thành:", err);
 
72
  const data = await res.json();
73
 
74
  if (res.ok && data.tong_so_hoan_thanh !== undefined) {
75
+ document.getElementById("completedRequests").textContent = data.tong_so_hoan_thanh + " phiếu";
76
  } else {
77
+ document.getElementById("completedRequests").textContent = "Không xác định";
78
  }
79
  } catch (err) {
80
  console.error("Lỗi khi gọi API hoàn thành:", err);