diff --git a/src/config/layout.ts b/src/config/layout.ts index 9b281f9..2046c3d 100644 --- a/src/config/layout.ts +++ b/src/config/layout.ts @@ -8,6 +8,8 @@ interface ILayoutSettings { showSidebarLogo: boolean /** 是否固定 Header */ fixedHeader: boolean + /** 是否显示消息通知 */ + showNotify: boolean /** 是否显示切换主题按钮 */ showThemeSwitch: boolean /** 是否显示全屏按钮 */ @@ -19,6 +21,7 @@ const layoutSettings: ILayoutSettings = { showTagsView: true, fixedHeader: true, showSidebarLogo: true, + showNotify: true, showThemeSwitch: true, showScreenfull: true } diff --git a/src/layout/components/NavigationBar/index.vue b/src/layout/components/NavigationBar/index.vue index ec29915..22a73c2 100644 --- a/src/layout/components/NavigationBar/index.vue +++ b/src/layout/components/NavigationBar/index.vue @@ -19,6 +19,9 @@ const userStore = useUserStore() const sidebar = computed(() => { return appStore.sidebar }) +const showNotify = computed(() => { + return settingsStore.showNotify +}) const showThemeSwitch = computed(() => { return settingsStore.showThemeSwitch }) @@ -42,7 +45,7 @@ const logout = () => {
- +