feat: 增加记录类型弹窗

This commit is contained in:
2026-08-21 15:48:35 +08:00
parent b5217ade67
commit 33192361be
11 changed files with 885 additions and 148 deletions

View File

@@ -149,3 +149,11 @@ export const isDoubleTokenMode = import.meta.env.VITE_AUTH_MODE === 'double'
* 通常为 /pages/index/index
*/
export const HOME_PAGE = `/${(pages as PageMetaDatum[]).find(page => page.type === 'home')?.path || (pages as PageMetaDatum[])[0].path}`
export function formatTime(ts: string | number) {
if (!ts)
return ''
const d = new Date(ts)
const pad = (n: number) => String(n).padStart(2, '0')
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}`
}