From 57eb5aa967cc2eb623fd912a6c4b38b198a06310 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Thu, 2 Apr 2026 10:37:02 +0800 Subject: [PATCH] feat(web): version info --- web/src/views/Index/components/VersionCard.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web/src/views/Index/components/VersionCard.tsx b/web/src/views/Index/components/VersionCard.tsx index dd9e9585..b7a73a17 100644 --- a/web/src/views/Index/components/VersionCard.tsx +++ b/web/src/views/Index/components/VersionCard.tsx @@ -3,8 +3,8 @@ * @Version: 0.0.1 * @Author: yujiangping * @Date: 2026-01-12 16:34:59 - * @LastEditors: yujiangping - * @LastEditTime: 2026-01-23 19:07:36 + * @LastEditors: ZhaoYing + * @LastEditTime: 2026-04-02 10:36:37 */ import React, { useEffect, useState, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; @@ -13,6 +13,7 @@ import { Flex } from 'antd'; import { getVersion, type versionResponse } from '@/api/common' import Empty from '@/components/Empty'; import { useI18n } from '@/store/locale'; +import { formatDateTime } from '@/utils/format' const VersionCard: React.FC = () => { const { t } = useTranslation(); @@ -51,18 +52,18 @@ const VersionCard: React.FC = () => { {introduction ? (<>
- {t('version.releaseDate')}: {introduction.releaseDate} | {t('version.name')}: {introduction.codeName} + {t('version.releaseDate')}: {formatDateTime(introduction.releaseDate, 'YYYY-MM-DD')} | {t('version.name')}: {introduction.codeName}

') }} /> {introduction.coreUpgrades?.map((item: string, index: number) => (

') }} /> ))}