修改字段

main
陈博文 4 days ago
parent 5d1228e9ea
commit d7536a9512

@ -342,19 +342,19 @@ const detailColumns = [
},
{
label: 'CPU大小',
value: 'coreTotal',
render: ({ coreTotal }) => (
value: 'cpuCores',
render: ({ cpuCores }) => (
<span>
{`${coreTotal}`}
{`${cpuCores}`}
</span>
),
},
{
label: '内存大小',
value: 'memoryTotal',
render: ({ memoryTotal }) => (
value: 'totalMemory',
render: ({ totalMemory }) => (
<span>
{`${bytesToGB(memoryTotal)}GiB`}
{`${bytesToGB(totalMemory)}GiB`}
</span>
),
},

@ -158,13 +158,13 @@ const columns = [
},
{
title: 'CPU',
dataIndex: 'coreTotal',
render: ({ coreTotal }) => `${coreTotal}`,
dataIndex: 'cpuCores',
render: ({ cpuCores }) => `${cpuCores}`,
},
{
title: '内存',
dataIndex: 'memoryTotal',
render: ({ memoryTotal }) => `${bytesToGB(memoryTotal)}GiB`,
dataIndex: 'totalMemory',
render: ({ totalMemory }) => `${bytesToGB(totalMemory)}GiB`,
},
{
title: '磁盘',

@ -81,13 +81,13 @@ const columns = [
},
{
title: 'CPU',
dataIndex: 'coreTotal',
render: ({ coreTotal }) => `${coreTotal}`,
dataIndex: 'cpuCores',
render: ({ cpuCores }) => `${cpuCores}`,
},
{
title: '内存',
dataIndex: 'memoryTotal',
render: ({ memoryTotal }) => `${bytesToGB(memoryTotal)}GiB`,
dataIndex: 'totalMemory',
render: ({ totalMemory }) => `${bytesToGB(totalMemory)}GiB`,
},
{
title: '磁盘',

Loading…
Cancel
Save