From b6d3aeac5729abd70e46cf5999163356f7f8add0 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期一, 22 六月 2026 18:06:20 +0800
Subject: [PATCH] 取消token刷新

---
 src/utils/formatter.ts |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/utils/formatter.ts b/src/utils/formatter.ts
index 8777f32..02bcb56 100644
--- a/src/utils/formatter.ts
+++ b/src/utils/formatter.ts
@@ -5,3 +5,12 @@
 export const fenToYuanFormat = (_, __, cellValue: any, ___) => {
   return `锟�${floatToFixed2(cellValue)}`
 }
+
+export function PrefixInteger(num, length) {
+  return (Array(length).join('0') + num).slice(-length);
+}
+
+export function formatTimeslot(timeslot: number): string {
+  const strTimeslot = PrefixInteger( timeslot, 8 )
+  return strTimeslot.slice(0,2) + ":" + strTimeslot.slice(2,4) + ' ~ ' + strTimeslot.slice(4,6) + ":" + strTimeslot.slice(6,8)
+}

--
Gitblit v1.9.3