refactor: ♻️ 优化导航栏、添加消息通知

This commit is contained in:
ray
2024-07-06 10:19:13 +08:00
parent 30b97c9c77
commit c555f01cd8
5 changed files with 39 additions and 39 deletions

View File

@@ -1,13 +1,28 @@
<template>
<!-- 顶部导航栏 -->
<div class="navbar-container">
<!-- 导航栏左侧 -->
<NavbarLeft />
<!-- 导航栏面包屑 -->
<div class="flex">
<hamburger
:is-active="appStore.sidebar.opened"
@toggle-click="toggleSideBar"
/>
<breadcrumb />
</div>
<!-- 导航栏右侧 -->
<NavbarRight />
<NavbarAction />
</div>
</template>
<script setup lang="ts">
import { useAppStore } from "@/store";
const appStore = useAppStore();
function toggleSideBar() {
appStore.toggleSidebar();
}
</script>
<style lang="scss" scoped>
.navbar-container {
@apply flex-x-between;