mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
refactor: improve visible condition of global search component (#5976)
#### What type of PR is this? /area ui /kind improvement /milestone 2.16.x #### What this PR does / why we need it: 优化 Console 的全局搜索对话框显示逻辑,改为未开启时不渲染组件。 #### Does this PR introduce a user-facing change? ```release-note None ```
This commit is contained in:
@@ -295,7 +295,10 @@ onMounted(() => {
|
||||
</Teleport>
|
||||
</div>
|
||||
</div>
|
||||
<GlobalSearchModal v-model:visible="globalSearchVisible" />
|
||||
<GlobalSearchModal
|
||||
v-if="globalSearchVisible"
|
||||
@close="globalSearchVisible = false"
|
||||
/>
|
||||
<LoginModal />
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user