From f347833ea8dc2c16c439ab4b2f1bda2d96caee4c Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 15 Jun 2022 14:48:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20license=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Page/LicenseRelatedTip.vue | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/layout/components/Page/LicenseRelatedTip.vue b/src/layout/components/Page/LicenseRelatedTip.vue index dd66d7743..5da235bef 100644 --- a/src/layout/components/Page/LicenseRelatedTip.vue +++ b/src/layout/components/Page/LicenseRelatedTip.vue @@ -1,10 +1,10 @@ @@ -26,6 +26,13 @@ export default { 'publicSettings', 'currentUser' ]), + licenseMsg() { + if (this.isExpire) { + return this.isExpire + } else { + return this.reachedAssetAmountLimit + } + }, isExpire() { if (!this.publicSettings.XPACK_ENABLED || !this.$hasPerm('settings.change_license')) { return false