fix: 修改未激活状态下信息内容 (#7112)
Some checks are pending
Build Test / build-linux-binary (push) Waiting to run
Build / SonarCloud (push) Waiting to run
sync2gitee / repo-sync (push) Waiting to run

This commit is contained in:
ssongliu 2024-11-18 14:58:03 +08:00 committed by GitHub
parent ee0e17a496
commit d068cc40f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 6 deletions

View File

@ -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',

View File

@ -1568,6 +1568,7 @@ const message = {
Enable: '已啟用',
Disable: '未啟用',
lostHelper: '許可證已達到最大重試次數請手動點擊同步按鈕以確保專業版功能正常使用',
disableHelper: '許可證同步驗證失敗請手動點擊同步按鈕以確保專業版功能正常使用',
quickUpdate: '快速更新',
import: '導入',
power: ' ',

View File

@ -1569,6 +1569,7 @@ const message = {
Enable: '已激活',
Disable: '未激活',
lostHelper: '许可证已达到最大重试次数请手动点击同步按钮以确保专业版功能正常使用',
disableHelper: '许可证同步验证失败请手动点击同步按钮以确保专业版功能正常使用',
quickUpdate: '快速更新',
import: '导入',
power: ' ',

View File

@ -43,11 +43,7 @@
</el-descriptions-item>
<el-descriptions-item :label="$t('license.productStatus')">
<div v-if="license.status">
<el-tooltip
v-if="license.status.indexOf('Lost') !== -1"
:content="license.message"
placement="top"
>
<el-tooltip v-if="license.message" :content="license.message" placement="top">
<el-tag type="info">
{{ $t('license.' + license.status) }}
</el-tag>
@ -57,7 +53,7 @@
<span v-else>-</span>
</el-descriptions-item>
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
{{ showSync() ? $t('license.lostHelper') : '' }}
{{ showSync() ? loadInfo() : '' }}
</el-descriptions-item>
</el-descriptions>
</div>
@ -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()