From 0e8da35b0a9fe095d14410726b0f4add834191dd Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 1 Jul 2024 10:55:46 +0800 Subject: [PATCH] fix bug --- package.json | 2 +- src/views/system/SearchBarView.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a02c91c1..929406c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moviepilot", - "version": "1.9.11", + "version": "1.9.10", "private": true, "bin": "dist/service.js", "scripts": { diff --git a/src/views/system/SearchBarView.vue b/src/views/system/SearchBarView.vue index 0f959253..28bb4ed4 100644 --- a/src/views/system/SearchBarView.vue +++ b/src/views/system/SearchBarView.vue @@ -81,6 +81,7 @@ function getMenus(): NavMenu[] { // 匹配的菜单列表 const matchedMenuItems = computed(() => { if (!searchWord.value) return [] + if (!superUser) return [] const lowerWord = (searchWord.value as string).toLowerCase() const menuItems = getMenus() if (menuItems) @@ -295,7 +296,7 @@ onMounted(() => { - +