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,