1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

feat: 增加许可证错误信息显示 (#4877)

This commit is contained in:
ssongliu 2024-05-06 14:25:55 +08:00 committed by GitHub
parent 539b600d6c
commit 4243ccb5c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -152,6 +152,7 @@ export namespace Setting {
productPro: string;
trial: boolean;
status: string;
message: string;
}
export interface LicenseStatus {
productPro: string;

View File

@ -48,6 +48,9 @@
</div>
<span v-else>-</span>
</el-descriptions-item>
<el-descriptions-item class="descriptions" :label="$t('commons.table.message')">
{{ license.message }}
</el-descriptions-item>
</el-descriptions>
</div>
@ -126,6 +129,7 @@ const license = reactive({
productName: '',
status: '',
message: '',
});
const toHalo = () => {
@ -197,6 +201,7 @@ const search = async () => {
globalStore.productProExpires = Number(res.data.productPro);
}
license.licenseName = res.data.licenseName;
license.message = res.data.message;
license.assigneeName = res.data.assigneeName;
license.trial = res.data.trial;
if (res.data.productPro) {
@ -234,4 +239,11 @@ onMounted(() => {
background-color: rgba(0, 94, 235, 0.03);
}
}
:deep(.el-descriptions__content) {
max-width: 300px;
}
.descriptions {
word-break: break-all;
word-wrap: break-word;
}
</style>