fix: remove auto v prefix from version display

Display raw version number from database without adding v prefix

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 16:55:28 +08:00
parent 16c68a855b
commit 87fba96264
@@ -29,10 +29,7 @@ export function getColumns(options: ColumnOptions, t: (key: string) => string):
accessorKey: 'version', accessorKey: 'version',
header: () => t('admin.versions.columns.version'), header: () => t('admin.versions.columns.version'),
cell: ({ row }) => { cell: ({ row }) => {
const version = row.original.version return h('code', { class: 'text-sm bg-muted px-2 py-1 rounded' }, row.original.version)
// 如果版本号本身已经有 v 前缀,则不再添加
const displayVersion = version.startsWith('v') || version.startsWith('V') ? version : `v${version}`
return h('code', { class: 'text-sm bg-muted px-2 py-1 rounded' }, displayVersion)
}, },
}, },
{ {