mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
fix: 区分企业版和社区版功能
This commit is contained in:
parent
69d963f2a9
commit
d613f5a893
@ -16,7 +16,7 @@
|
||||
<SystemSetting />
|
||||
</el-tooltip>
|
||||
</li>
|
||||
<li class="header-item header-hover">
|
||||
<li v-if="$hasLicense" class="header-item header-hover">
|
||||
<Tickets />
|
||||
</li>
|
||||
<li class="header-item">
|
||||
@ -30,7 +30,7 @@
|
||||
<li class="left-item">
|
||||
<ViewSwitcher />
|
||||
</li>
|
||||
<li v-show="showOrganize()" class="left-item" style="margin-left: 12px">
|
||||
<li v-if="showOrganize()" class="left-item" style="margin-left: 12px">
|
||||
<Organization class="organization" />
|
||||
</li>
|
||||
</ul>
|
||||
@ -74,7 +74,7 @@ export default {
|
||||
this.$store.dispatch('app/toggleSideBar')
|
||||
},
|
||||
showOrganize() {
|
||||
return this.$route.meta?.showOrganization !== false
|
||||
return (this.$route.meta?.showOrganization !== false) && this.$hasLicense
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,13 +62,11 @@ export default {
|
||||
path: '/settings/sms',
|
||||
name: 'SMS',
|
||||
component: () => import('@/views/settings/SMS'),
|
||||
hidden: () => {
|
||||
return !this.$store.getters.hasValidLicense
|
||||
},
|
||||
meta: {
|
||||
title: i18n.t('setting.SMS'),
|
||||
icon: 'gear',
|
||||
permissions: ['settings.view_setting']
|
||||
icon: 'mobile-phone fa-lg',
|
||||
permissions: ['settings.view_setting'],
|
||||
licenseRequired: true
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -225,7 +223,8 @@ export default {
|
||||
meta: {
|
||||
title: i18n.t('xpack.Organization.OrganizationList'),
|
||||
icon: 'sitemap',
|
||||
permissions: ['orgs.view_organization']
|
||||
permissions: ['orgs.view_organization'],
|
||||
licenseRequired: true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -65,7 +65,7 @@ export const DATABASE = [
|
||||
title: i18n.t(`applications.applicationsType.${MARIADB}`),
|
||||
type: 'primary',
|
||||
category: DATABASE_CATEGORY,
|
||||
has: true
|
||||
has: hasLicence
|
||||
},
|
||||
{
|
||||
name: ORACLE,
|
||||
|
Loading…
Reference in New Issue
Block a user