初始化(包含登录模块)

This commit is contained in:
2024-03-29 17:37:48 +08:00
commit 1bcb13ce7a
1306 changed files with 152772 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
}