diff --git a/src/components/Table/src/hooks/useColumns.ts b/src/components/Table/src/hooks/useColumns.ts index bb03a6ec..c302ca78 100644 --- a/src/components/Table/src/hooks/useColumns.ts +++ b/src/components/Table/src/hooks/useColumns.ts @@ -298,7 +298,7 @@ export function formatCell(text: string, format: CellFormat, record: Recordable, try { // date type const DATE_FORMAT_PREFIX = 'date|'; - if (isString(format) && format.startsWith(DATE_FORMAT_PREFIX)) { + if (isString(format) && format.startsWith(DATE_FORMAT_PREFIX) && text) { const dateFormat = format.replace(DATE_FORMAT_PREFIX, ''); if (!dateFormat) { diff --git a/src/router/routes/modules/about.ts b/src/router/routes/modules/about.ts index d32c4f54..87ebb690 100644 --- a/src/router/routes/modules/about.ts +++ b/src/router/routes/modules/about.ts @@ -3,7 +3,7 @@ import type { AppRouteModule } from '/@/router/types'; import { LAYOUT } from '/@/router/constant'; import { t } from '/@/hooks/web/useI18n'; -const dashboard: AppRouteModule = { +const about: AppRouteModule = { path: '/about', name: 'About', component: LAYOUT, @@ -28,4 +28,4 @@ const dashboard: AppRouteModule = { ], }; -export default dashboard; +export default about;