Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Jul 1, 2024
1 parent 4d2cf73 commit 0e8da35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moviepilot",
"version": "1.9.11",
"version": "1.9.10",
"private": true,
"bin": "dist/service.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/views/system/SearchBarView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -295,7 +296,7 @@ onMounted(() => {
</VListItem>
</template>
</VHover>
<VHover>
<VHover v-if="superUser">
<template #default="hover">
<VListItem prepend-icon="mdi-history" link v-bind="hover.props" @click="searchHistory">
<VListItemTitle class="break-words whitespace-break-spaces">
Expand Down Expand Up @@ -390,7 +391,7 @@ onMounted(() => {
</div>
</VCol>
</VRow>
<VRow>
<VRow v-if="superUser">
<VCol cols="12" md="6">
<p class="custom-letter-spacing text-sm text-disabled text-uppercase py-2 px-4 mb-0">常用功能</p>
<VList lines="one">
Expand Down

0 comments on commit 0e8da35

Please sign in to comment.