From 45b13930397af462401df320d90132eabd9d1154 Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Sun, 18 Aug 2024 15:13:49 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E5=AE=9E=E4=BE=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=B1=95=E5=BC=80=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/controller/host.js | 2 +- server/app/controller/ssh.js | 4 ++-- web/src/views/server/components/host-table.vue | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) 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; + } }