重命名组件名称,增加用户地址查看api和页面、统一组件的props userId 变量名。

This commit is contained in:
绮梦
2023-08-25 11:27:47 +08:00
parent f17bb9a7eb
commit 28951fb31d
11 changed files with 284 additions and 164 deletions

View File

@ -11,7 +11,7 @@ import dayjs from 'dayjs'
* @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"
* @returns 返回拼接后的时间字符串
*/
export function formatDate(date: Date, format?: string): string {
export function formatDate(date: Date | number, format?: string): string {
// 日期不存在,则返回空
if (!date) {
return ''