dashboard
repositories
filestore
activity
search
login
crm
/
tenant-console
crm租户管理web后台
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
feat: 日志页面
wsj
3 days ago
cd2b7d36f3610417c268d062454b7ec43e9ca937
[crm/tenant-console.git]
/
src
/
pages
/
customers
/
list
/
utils.ts
1
2
3
4
5
6
7
8
9
import dayjs from 'dayjs';
/** 格式化后端返回的日期时间,无法解析时原样展示。 */
export const formatDateTime = (value?: string) => {
if (!value) return '-';
const date = dayjs(value);
return date.isValid() ? date.format('YYYY-MM-DD HH:mm') : value;
};