feat:增加训练场和错题集模块

This commit is contained in:
2026-07-29 19:50:40 +08:00
parent 1f88341019
commit 4d49660b18
21 changed files with 620 additions and 90 deletions

8
src/utils/dayUtil.ts Normal file
View File

@@ -0,0 +1,8 @@
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/zh-cn'
dayjs.extend(relativeTime)
dayjs.locale('zh-cn')
export const fromNow = (time: Date | string | number) => dayjs(time).fromNow()