From 82b14b6542a223dcd31d5d474c6a70ce1582ffc8 Mon Sep 17 00:00:00 2001 From: feng626 <57284900+feng626@users.noreply.github.com> Date: Sun, 28 Apr 2024 18:23:30 +0800 Subject: [PATCH] Revert "perf: remove ticket feature" --- src/views/settings/Feature/index.vue | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/views/settings/Feature/index.vue b/src/views/settings/Feature/index.vue index 338702b8b..d8635e6fc 100644 --- a/src/views/settings/Feature/index.vue +++ b/src/views/settings/Feature/index.vue @@ -14,7 +14,6 @@ import Ticket from './Ticket.vue' import Ops from './Ops.vue' import Chat from './Chat.vue' import VirtualApp from './VirtualApp.vue' -import { mapGetters } from 'vuex' export default { name: 'Feature', @@ -30,7 +29,7 @@ export default { { title: this.$t('Ticket'), name: 'Ticket', - hidden: !this.ticketsEnabled + hidden: !this.$store.getters.hasValidLicense }, { title: this.$t('AppOps'), @@ -53,16 +52,6 @@ export default { } ] } - }, - computed: { - ...mapGetters([ - 'publicSettings' - ]), - ticketsEnabled() { - return this.publicSettings['TICKETS_ENABLED'] && - this.$hasLicense() && - this.$hasPerm('tickets.view_ticket') - } } }