diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 1e57f6d4f..70007128e 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1691,6 +1691,8 @@ const message = { Disable: 'Disabled', lostHelper: 'The license has reached the maximum number of retry attempts. Please manually click the sync button to ensure the professional version features are functioning properly.', + disableHelper: + 'License synchronization verification failed. Please manually click the sync button to ensure that the professional version features are functioning properly.', quickUpdate: 'Quick Update', import: 'Import', power: 'Authorize', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 194abfa64..82eac6011 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1568,6 +1568,7 @@ const message = { Enable: '已啟用', Disable: '未啟用', lostHelper: '許可證已達到最大重試次數,請手動點擊同步按鈕,以確保專業版功能正常使用。', + disableHelper: '許可證同步驗證失敗,請手動點擊同步按鈕,以確保專業版功能正常使用。', quickUpdate: '快速更新', import: '導入', power: '授 權', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index a7ece7f87..a2a8fb5e9 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1569,6 +1569,7 @@ const message = { Enable: '已激活', Disable: '未激活', lostHelper: '许可证已达到最大重试次数,请手动点击同步按钮,以确保专业版功能正常使用。', + disableHelper: '许可证同步验证失败,请手动点击同步按钮,以确保专业版功能正常使用。', quickUpdate: '快速更新', import: '导入', power: '授 权', diff --git a/frontend/src/views/setting/license/index.vue b/frontend/src/views/setting/license/index.vue index 191f2e66a..8927704fb 100644 --- a/frontend/src/views/setting/license/index.vue +++ b/frontend/src/views/setting/license/index.vue @@ -43,11 +43,7 @@
- + {{ $t('license.' + license.status) }} @@ -57,7 +53,7 @@ - - {{ showSync() ? $t('license.lostHelper') : '' }} + {{ showSync() ? loadInfo() : '' }}
@@ -146,6 +142,10 @@ const toHalo = () => { window.open('https://www.lxware.cn/1panel' + '', '_blank', 'noopener,noreferrer'); }; +const loadInfo = () => { + return license.status === 'Lost' ? i18n.global.t('license.lostHelper') : i18n.global.t('license.disableHelper'); +}; + const onSync = async () => { loading.value = true; await syncLicense()