fix: 修改未激活状态下信息内容 (#7112)

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', Disable: 'Disabled',
lostHelper: 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.', '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', quickUpdate: 'Quick Update',
import: 'Import', import: 'Import',
power: 'Authorize', power: 'Authorize',

View file

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

View file

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

View file

@ -43,11 +43,7 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('license.productStatus')"> <el-descriptions-item :label="$t('license.productStatus')">
<div v-if="license.status"> <div v-if="license.status">
<el-tooltip <el-tooltip v-if="license.message" :content="license.message" placement="top">
v-if="license.status.indexOf('Lost') !== -1"
:content="license.message"
placement="top"
>
<el-tag type="info"> <el-tag type="info">
{{ $t('license.' + license.status) }} {{ $t('license.' + license.status) }}
</el-tag> </el-tag>
@ -57,7 +53,7 @@
<span v-else>-</span> <span v-else>-</span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')"> <el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
{{ showSync() ? $t('license.lostHelper') : '' }} {{ showSync() ? loadInfo() : '' }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
@ -146,6 +142,10 @@ const toHalo = () => {
window.open('https://www.lxware.cn/1panel' + '', '_blank', 'noopener,noreferrer'); 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 () => { const onSync = async () => {
loading.value = true; loading.value = true;
await syncLicense() await syncLicense()