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:
@@ -29,10 +29,7 @@ export function getColumns(options: ColumnOptions, t: (key: string) => string):
|
||||
accessorKey: 'version',
|
||||
header: () => t('admin.versions.columns.version'),
|
||||
cell: ({ row }) => {
|
||||
const version = 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)
|
||||
return h('code', { class: 'text-sm bg-muted px-2 py-1 rounded' }, row.original.version)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user