修改字段

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

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

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

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

Loading…
Cancel
Save