fix system update current version display

This commit is contained in:
ShukeBta
2026-07-02 00:04:04 +08:00
parent 3bea1ca276
commit 5ecb5e2144
7 changed files with 63 additions and 21 deletions
+1
View File
@@ -3,6 +3,7 @@ import type { AccessLog, Setting, User } from '../types'
export interface SystemUpdateStatus {
image: string
current_version?: string
watchtower_image?: string
update_mode?: string
compose_dir?: string
+2 -1
View File
@@ -139,7 +139,8 @@ export function SystemUpdatePanel() {
</div>
</div>
<div className="grid gap-3 md:grid-cols-2 xl:grid-cols-4">
<div className="grid gap-3 md:grid-cols-2 xl:grid-cols-5">
<UpdateFact label="当前版本" value={status?.current_version || 'dev'} mono />
<UpdateFact icon={Server} label="更新方式" value={status?.update_mode === 'compose' ? 'Docker Compose' : '自定义命令'} />
<UpdateFact label="Compose 目录" value={status?.compose_dir || '自动识别'} mono />
<UpdateFact label="应用镜像" value={status?.image || '-'} mono />