diff --git a/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue b/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue index bffffc9ca..8486025ae 100644 --- a/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue +++ b/packages/ui/certd-client/src/components/vip-button/vip-modal-content.vue @@ -139,7 +139,7 @@ async function doActive() { title: t("vip.successTitle"), content: t("vip.successContent", { vipLabel, - expireDate: dayjs(settingStore.plusInfo.expireTime).format("YYYY-MM-DD"), + expireDate: settingStore.plusInfo.expireTime === -1 ? t("vip.permanent") : dayjs(settingStore.plusInfo.expireTime).format("YYYY-MM-DD"), }), onOk() { if (!(settingStore.installInfo.bindUserId > 0)) { diff --git a/packages/ui/certd-client/src/locales/langs/en-US/vip.ts b/packages/ui/certd-client/src/locales/langs/en-US/vip.ts index cb4935359..02eacd676 100644 --- a/packages/ui/certd-client/src/locales/langs/en-US/vip.ts +++ b/packages/ui/certd-client/src/locales/langs/en-US/vip.ts @@ -104,4 +104,5 @@ export default { not_effective: "Not effective or duration not sync?", learn_more: "More privileges", question: "More VIP related questions", + permanent: "Permanent", }; diff --git a/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts b/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts index 59f28c87b..9a686ede1 100644 --- a/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts +++ b/packages/ui/certd-client/src/locales/langs/zh-CN/vip.ts @@ -103,4 +103,5 @@ export default { not_effective: "VIP没有生效/时长未同步?", learn_more: "更多特权(加VIP群等)", question: "更多VIP相关问题", + permanent: "永久", };