diff --git a/server/app/controller/host.js b/server/app/controller/host.js index 65ce8c67..bcb03207 100644 --- a/server/app/controller/host.js +++ b/server/app/controller/host.js @@ -42,7 +42,7 @@ async function addHost({ const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey) console.log(`${ authType }原密文: `, clearSSHKey) record[authType] = await AESEncryptSync(clearSSHKey) - console.log(`${ authType }__commonKey加密存储: `, record[authType]) + // console.log(`${ authType }__commonKey加密存储: `, record[authType]) } hostList.push(record) await writeHostList(hostList) diff --git a/server/app/controller/ssh.js b/server/app/controller/ssh.js index 71c01ad5..87043a1d 100644 --- a/server/app/controller/ssh.js +++ b/server/app/controller/ssh.js @@ -24,7 +24,7 @@ const addSSH = async ({ res, request }) => { const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey) // console.log(`${ authType }原密文: `, clearSSHKey) record[authType] = await AESEncryptSync(clearSSHKey) - console.log(`${ authType }__commonKey加密存储: `, record[authType]) + // console.log(`${ authType }__commonKey加密存储: `, record[authType]) sshRecord.push({ ...record, date: Date.now() }) await writeSSHRecord(sshRecord) @@ -51,7 +51,7 @@ const updateSSH = async ({ res, request }) => { const clearSSHKey = await AESDecryptSync(record[authType], clearTempKey) // console.log(`${ authType }原密文: `, clearSSHKey) record[authType] = await AESEncryptSync(clearSSHKey) - console.log(`${ authType }__commonKey加密存储: `, record[authType]) + // console.log(`${ authType }__commonKey加密存储: `, record[authType]) } record._id = sshRecord[idx]._id sshRecord.splice(idx, 1, record) diff --git a/web/src/views/server/components/host-table.vue b/web/src/views/server/components/host-table.vue index 24be4c10..1ee691b2 100644 --- a/web/src/views/server/components/host-table.vue +++ b/web/src/views/server/components/host-table.vue @@ -13,9 +13,10 @@ {{ `${row.monitorData?.cpuInfo?.cpuModel}-${row.monitorData?.cpuInfo?.cpuCount}-(${row.monitorData?.cpuInfo?.cpuUsage}%)` }} @@ -203,5 +204,8 @@ const handleRemoveHost = async ({ host }) => { text-align: center; color: var(--el-color-warning);; } + .host_info { + padding: 0 20px; + } }