第一次提交

This commit is contained in:
@fawn-nine
2024-05-22 13:42:15 +08:00
commit bb53af8bde
2133 changed files with 129959 additions and 0 deletions

18
utils/utils.js Normal file
View File

@@ -0,0 +1,18 @@
/**
* date转化为hh:mm
*/
export function dateToStr(date) {
if (typeof date !== 'number') {
return ''
}
date = new Date(date)
let hh = date.getHours()
let mm = date.getMinutes()
if (hh<10) {
hh = '0' + hh
}
if (mm<10) {
mm = '0' + mm
}
return hh + ':' + mm
}