From bcbf186858e1114f136eafbcbf737759c29e7f5b Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Fri, 24 Nov 2023 18:05:15 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=81=E4=B8=9A=E7=89=88license?= =?UTF-8?q?=E6=96=87=E6=A1=88=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/about/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/about/index.vue b/core/core-frontend/src/views/about/index.vue index ca9f3d690e..3fd3c4b07e 100644 --- a/core/core-frontend/src/views/about/index.vue +++ b/core/core-frontend/src/views/about/index.vue @@ -21,6 +21,7 @@ const license: F2CLicense = reactive({ remark: '', isv: '' }) +const tipsSuffix = ref('') const build = ref('') const isAdmin = ref(false) const fileList = reactive([]) @@ -88,6 +89,9 @@ const validateHandler = (param, success) => { validateApi(param).then(success) } const getLicense = result => { + if (result.status === 'valid') { + tipsSuffix.value = result.edition === 'Embedded' ? '套' : '个账号' + } return { status: result.status, corporation: result.license ? result.license.corporation : '', @@ -145,7 +149,9 @@ const update = (licKey: string) => {
{{ $t('about.auth_num') }}
-
{{ `${license.count} 套` }}
+
+ {{ license.status === 'valid' ? `${license.count} ${tipsSuffix}` : '' }} +
{{ $t('about.version') }}