diff --git a/react-ui/src/pages/Dataset/components/ResourceItem/index.tsx b/react-ui/src/pages/Dataset/components/ResourceItem/index.tsx
index a9025a98..e3d4d3bb 100644
--- a/react-ui/src/pages/Dataset/components/ResourceItem/index.tsx
+++ b/react-ui/src/pages/Dataset/components/ResourceItem/index.tsx
@@ -14,9 +14,7 @@ type ResourceItemProps = {
};
function ResourceItem({ item, isPublic, onClick, onRemove }: ResourceItemProps) {
- const timeAgo = `更新于${
- item.update_time ? formatDate(item.update_time, 'YYYY-MM-DD') : item.time_ago ?? ''
- }`;
+ const timeAgo = `最近更新:${formatDate(item.full_last_update_time, 'YYYY-MM-DD HH:mm')}`;
const create_by = item.create_by ?? '';
return (
onClick(item)}>
diff --git a/react-ui/src/pages/Dataset/config.tsx b/react-ui/src/pages/Dataset/config.tsx
index af1993b9..4799c75c 100644
--- a/react-ui/src/pages/Dataset/config.tsx
+++ b/react-ui/src/pages/Dataset/config.tsx
@@ -164,6 +164,7 @@ export interface ResourceData {
train_task?: TrainTask; // 训练任务
praises_count: number; // 点赞数
praised: boolean; // 是否点赞
+ full_last_update_time: string; // 完整的更新时间
}
// 数据集数据
diff --git a/react-ui/src/pages/ModelDeployment/VersionInfo/index.tsx b/react-ui/src/pages/ModelDeployment/VersionInfo/index.tsx
index 0729631d..ad59fd23 100644
--- a/react-ui/src/pages/ModelDeployment/VersionInfo/index.tsx
+++ b/react-ui/src/pages/ModelDeployment/VersionInfo/index.tsx
@@ -52,30 +52,32 @@ function ServiceVersionInfo() {
},
];
- if (versionInfo?.run_state === ServiceRunStatus.Running && versionInfo?.page_path) {
- tabItems.push({
- key: ModelDeploymentTabKey.Predict,
- label: '预测',
- icon:
,
- children: (
-
-
-
- ),
- });
- }
+ if (versionInfo?.run_state === ServiceRunStatus.Running) {
+ if (versionInfo?.page_path) {
+ tabItems.push({
+ key: ModelDeploymentTabKey.Predict,
+ label: '预测',
+ icon:
,
+ children: (
+
+
+
+ ),
+ });
+ }
- if (versionInfo?.doc_path) {
- tabItems.push({
- key: ModelDeploymentTabKey.Guide,
- label: '调用指南',
- icon:
,
- children: (
-
-
-
- ),
- });
+ if (versionInfo?.doc_path) {
+ tabItems.push({
+ key: ModelDeploymentTabKey.Guide,
+ label: '调用指南',
+ icon:
,
+ children: (
+
+
+
+ ),
+ });
+ }
}
tabItems.push({