update
This commit is contained in:
6
src/utils/helper.ts
Normal file
6
src/utils/helper.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useDateFormat } from "@vueuse/core"
|
||||
|
||||
export function parseTime(utc: Date | string, format = "YYYY年M月D日") {
|
||||
const time = useDateFormat(utc, format, { locales: "zh-CN" })
|
||||
return time.value
|
||||
}
|
||||
@@ -15,3 +15,11 @@ export interface TutorialIn {
|
||||
title: string
|
||||
content: string
|
||||
}
|
||||
|
||||
export interface User {
|
||||
username: string
|
||||
date_joined: Date
|
||||
last_login: Date
|
||||
role: Role
|
||||
is_active: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user