diff --git a/ui/src/layout/components/sidebar/index.vue b/ui/src/layout/components/sidebar/index.vue
index 74f87c59f..54e5c5947 100644
--- a/ui/src/layout/components/sidebar/index.vue
+++ b/ui/src/layout/components/sidebar/index.vue
@@ -8,7 +8,6 @@
{{ menuText.systemSettings }}
@@ -126,13 +117,6 @@
>
{{ menuText.emailSettings }}
-
- {{ menuText.menuManagement }}
-
@@ -149,11 +133,9 @@ import { computed, onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
import UserAvatar from '@/layout/layout-header/avatar/index.vue'
-import useStore from '@/stores'
const route = useRoute()
const { locale } = useI18n({ useScope: 'global' })
-const { menuSetting } = useStore()
const menuText = computed(() => {
if (locale.value === 'en-US') {
@@ -167,7 +149,6 @@ const menuText = computed(() => {
resourceAuthorization: 'Resource Authorization',
systemSettings: 'System Settings',
emailSettings: 'Email Settings',
- menuManagement: 'Menu Management',
}
}
if (locale.value === 'zh-Hant') {
@@ -181,7 +162,6 @@ const menuText = computed(() => {
resourceAuthorization: '資源授權',
systemSettings: '系統設定',
emailSettings: '郵件設定',
- menuManagement: '菜單管理',
}
}
return {
@@ -194,7 +174,6 @@ const menuText = computed(() => {
resourceAuthorization: '资源授权',
systemSettings: '系统设置',
emailSettings: '邮件设置',
- menuManagement: '菜单管理',
}
})
@@ -213,8 +192,6 @@ const activeMainMenu = computed(() => {
return '/application'
})
-const hasMenu = (menuId: string) => menuSetting.hasMenu(menuId)
-
const activeSystemMenu = computed(() => {
const path = route.path
if (path.startsWith('/system/user') || path.startsWith('/admin/system/user')) return '/system/user'
@@ -224,9 +201,6 @@ const activeSystemMenu = computed(() => {
if (path.startsWith('/system/email') || path.startsWith('/admin/system/email')) {
return path.replace('/admin', '')
}
- if (path.startsWith('/system/setting') || path.startsWith('/admin/system/setting')) {
- return path.replace('/admin', '')
- }
return '/system/user'
})
@@ -244,9 +218,7 @@ const toggleSystemSettings = () => {
}
onMounted(() => {
- menuSetting.ensureLoaded()
resourceAuthExpanded.value = false
- systemSettingsExpanded.value =
- activeSystemMenu.value.startsWith('/system/email') || activeSystemMenu.value.startsWith('/system/setting')
+ systemSettingsExpanded.value = false
})