dashboard
repositories
filestore
activity
search
login
crm
/
tenant-console
crm租户管理web后台
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
feat: 提交
wsj
4 days ago
fe1692fd7f4f307fea8054da6c6c50d5df2bf2d8
[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;
};