fix: 优化许可证错误信息 (#7094)

pull/7100/head
ssongliu 1 week ago committed by GitHub
parent 3087c1a6e8
commit eb36a0f8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -201,6 +201,7 @@ ErrLicenseSync: "Failed to sync license information, no license information dete
ErrXpackNotFound: "This section is a professional edition feature, please import the license first in Panel Settings-License interface"
ErrXpackNotActive: "This section is a professional edition feature, please synchronize the license status first in Panel Settings-License interface"
ErrXpackOutOfDate: "The current license has expired, please re-import the license in Panel Settings-License interface"
ErrXpackTimeout: "Request timed out, the network connection may be unstable, please try again later!"
#license

@ -202,6 +202,7 @@ ErrLicenseSync: "許可證信息同步失敗,資料庫中未檢測到許可證
ErrXpackNotFound: "該部分為專業版功能,請先在 面板設置-許可證 界面導入許可證"
ErrXpackNotActive: "該部分為專業版功能,請先在 面板設置-許可證 界面同步許可證狀態"
ErrXpackOutOfDate: "當前許可證已過期,請重新在 面板設置-許可證 界面導入許可證"
ErrXpackTimeout: "請求超時,網絡連接可能不穩定,請稍後再試!"
#license
ErrAlert: "告警資訊格式錯誤,請檢查後重試!"

@ -204,6 +204,7 @@ ErrLicenseSync: "许可证信息同步失败,数据库中未检测到许可证
ErrXpackNotFound: "该部分为专业版功能,请先在 面板设置-许可证 界面导入许可证"
ErrXpackNotActive: "该部分为专业版功能,请先在 面板设置-许可证 界面同步许可证状态"
ErrXpackOutOfDate: "当前许可证已过期,请重新在 面板设置-许可证 界面导入许可证"
ErrXpackTimeout: "请求超时,网络连接可能不稳定,请稍后再试!"
#license
ErrAlert: "告警信息格式错误,请检查后重试!"

@ -1690,7 +1690,7 @@ const message = {
Enable: 'Enabled',
Disable: 'Disabled',
lostHelper:
'The License needs to be periodically synchronized for availability. Please ensure normal external network access.',
'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.',
quickUpdate: 'Quick Update',
import: 'Import',
power: 'Authorize',

@ -1567,7 +1567,7 @@ const message = {
Lost: '',
Enable: '',
Disable: '',
lostHelper: '',
lostHelper: '使',
quickUpdate: '',
import: '',
power: ' ',

@ -1568,7 +1568,7 @@ const message = {
Lost: '',
Enable: '',
Disable: '',
lostHelper: '访',
lostHelper: '使',
quickUpdate: '',
import: '',
power: ' ',

@ -45,7 +45,8 @@
<div v-if="license.status">
<el-tooltip
v-if="license.status.indexOf('Lost') !== -1"
:content="$t('license.lostHelper')"
:content="license.message"
placement="top"
>
<el-tag type="info">
{{ $t('license.' + license.status) }}
@ -56,7 +57,7 @@
<span v-else>-</span>
</el-descriptions-item>
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
{{ license.message }}
{{ showSync() ? $t('license.lostHelper') : '' }}
</el-descriptions-item>
</el-descriptions>
</div>
@ -200,7 +201,7 @@ const search = async () => {
await getLicense()
.then((res) => {
loading.value = false;
license.status = res.data.status;
license.status = res.data.status === 'OnRetry' ? 'Enable' : res.data.status;
globalStore.isProductPro =
res.data.status === 'Enable' || res.data.status === 'OnRetry' || res.data.status === 'Lost';
if (res.data.status === '') {

Loading…
Cancel
Save