diff --git a/ui/src/layout/components/app-header/index.vue b/ui/src/layout/components/app-header/index.vue
index 12f45ae14..2bb2ca148 100644
--- a/ui/src/layout/components/app-header/index.vue
+++ b/ui/src/layout/components/app-header/index.vue
@@ -1,5 +1,13 @@
diff --git a/ui/src/layout/components/top-bar/avatar/AboutDialog.vue b/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
index 58b93a076..197fc55ca 100644
--- a/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
+++ b/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
@@ -17,7 +17,7 @@
ISV{{ licenseInfo?.isv || '-' }}
- 过期时间
+ 到期时间
{{ licenseInfo?.expired || '-' }}
版本{{
- licenseInfo?.edition
- ? EditionType[licenseInfo.edition as keyof typeof EditionType]
+ user.isXPack
+ ? EditionType[licenseInfo.edition as keyof typeof EditionType] || '专业版'
: '社区版'
}}
@@ -44,10 +44,7 @@
备注{{ licenseInfo?.remark || '-' }}
-
+
(null)
const open = () => {
- if (user.isEnterprise()) {
+ if (user.isXPack) {
getLicenseInfo()
}
diff --git a/ui/src/layout/components/top-bar/index.vue b/ui/src/layout/components/top-bar/index.vue
index 3f00b671c..2729cdacf 100644
--- a/ui/src/layout/components/top-bar/index.vue
+++ b/ui/src/layout/components/top-bar/index.vue
@@ -1,13 +1,5 @@
·
-
@@ -71,11 +63,8 @@ import Avatar from './avatar/index.vue'
import { useRouter } from 'vue-router'
import { langList } from '@/locales/index'
import { useLocale } from '@/locales/useLocale'
-import useStore from '@/stores'
const router = useRouter()
-const { user } = useStore()
-
const { changeLocale } = useLocale()
const changeLang = (lang: string) => {
changeLocale(lang)
diff --git a/ui/src/layout/layout-template/AppLayout.vue b/ui/src/layout/layout-template/AppLayout.vue
index faa91ee57..71bca0dfa 100644
--- a/ui/src/layout/layout-template/AppLayout.vue
+++ b/ui/src/layout/layout-template/AppLayout.vue
@@ -1,11 +1,13 @@
-
diff --git a/ui/src/layout/layout-template/SystemLayout.vue b/ui/src/layout/layout-template/SystemLayout.vue
index 27ede72ff..46221f3ad 100644
--- a/ui/src/layout/layout-template/SystemLayout.vue
+++ b/ui/src/layout/layout-template/SystemLayout.vue
@@ -1,7 +1,7 @@