feat: 增加存储功能

This commit is contained in:
2026-08-22 21:38:14 +08:00
parent 2bb55368cd
commit af0f396ed8
12 changed files with 369 additions and 208 deletions

View File

@@ -150,7 +150,7 @@ export const isDoubleTokenMode = import.meta.env.VITE_AUTH_MODE === 'double'
*/
export const HOME_PAGE = `/${(pages as PageMetaDatum[]).find(page => page.type === 'home')?.path || (pages as PageMetaDatum[])[0].path}`
export function formatTime(ts: string | number) {
export function formatDateTime(ts: string | number) {
if (!ts)
return ''
const d = new Date(ts)