超级管理员 setup 改造完成

This commit is contained in:
piexlmax
2021-12-30 17:06:11 +08:00
parent abcd1c54b4
commit 512e91e2bc
5 changed files with 529 additions and 343 deletions

17
web/src/utils/format.js Normal file
View File

@@ -0,0 +1,17 @@
import { formatTimeToStr } from '@/utils/date'
export const formatBoolean = (bool) => {
if (bool !== null) {
return bool ? '是' : '否'
} else {
return ''
}
}
export const formatDate = (time) => {
if (time !== null && time !== '') {
var date = new Date(time)
return formatTimeToStr(date, 'yyyy-MM-dd hh:mm:ss')
} else {
return ''
}
}