Skip to content

Commit

Permalink
docs: hide the search input on the left menu at open source sites (#2607
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kagol authored Dec 4, 2024
1 parent c3cf26f commit a9a197a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/sites/src/views/layout/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:data="menuOptions"
:menu-collapsible="true"
:filter-node-method="searchMenu"
:show-filter="false"
:show-filter="isShowFilter"
@current-change="clickMenu"
@collapse-change="collapseChange"
>
Expand Down Expand Up @@ -140,6 +140,9 @@ export default defineComponent({
}
let routerCbDestroy = null
const envTarget = import.meta.env.VITE_BUILD_TARGET || 'open'
const isShowFilter = envTarget !== 'open'
watch(
() => route.path,
(currentVal) => {
Expand Down Expand Up @@ -187,7 +190,8 @@ export default defineComponent({
clickMenuLink,
getWord,
i18nByKey,
isThemeSaas
isThemeSaas,
isShowFilter
}
}
})
Expand Down

0 comments on commit a9a197a

Please sign in to comment.