From 0998de4ae6a8f298629ae73e19e122f176d4d440 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 11 Apr 2026 23:10:51 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=A6=96=E9=A1=B5=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/framework/home/dashboard/index.vue | 6 +++++- .../src/plugins/plugin-aliyun/plugin/deploy-to-esa/index.ts | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue b/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue index d26d63567..a607b262a 100644 --- a/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue +++ b/packages/ui/certd-client/src/views/framework/home/dashboard/index.vue @@ -238,10 +238,14 @@ const avatar = computed(() => { } return `/api/basic/file/download?key=${avt}`; }); +const dateNow = ref(Date.now()); const now = computed(() => { - const serverTime = Date.now() - settingStore.app.deltaTime; + const serverTime = dateNow.value - settingStore.app.deltaTime; return dayjs(serverTime).format("YYYY-MM-DD HH:mm:ss"); }); +setInterval(() => { + dateNow.value = Date.now(); +}, 5000); const deltaTimeWarning = computed(() => { return Math.abs(settingStore.app.deltaTime) > 1000 * 60 * 4; diff --git a/packages/ui/certd-server/src/plugins/plugin-aliyun/plugin/deploy-to-esa/index.ts b/packages/ui/certd-server/src/plugins/plugin-aliyun/plugin/deploy-to-esa/index.ts index 22c3eb1a9..1c54b8563 100644 --- a/packages/ui/certd-server/src/plugins/plugin-aliyun/plugin/deploy-to-esa/index.ts +++ b/packages/ui/certd-server/src/plugins/plugin-aliyun/plugin/deploy-to-esa/index.ts @@ -100,10 +100,8 @@ export class AliyunDeployCertToESA extends AbstractTaskPlugin { helper: "将检查证书数量限制,如果超限将删除最旧的那张证书", required: true }) - certLimit: number = 2; - async onInstance() { } @@ -123,7 +121,7 @@ export class AliyunDeployCertToESA extends AbstractTaskPlugin { certId = casCert.certId; certName = casCert.certName; } else if (certInfo.crt) { - certName = this.buildCertName(CertReader.getMainDomain(certInfo.crt)); + certName = this.buildCertName(CertReader.getMainDomain(certInfo.crt),"certd"); const certIdRes = await sslClient.uploadCertificate({ name: certName,