mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-10 04:47:50 +00:00
菜单加载数据
This commit is contained in:
@@ -3,14 +3,18 @@ import LeftMenu from '@/layout/LeftMenu.vue'
|
||||
import TopNav from '@/layout/TopNav.vue'
|
||||
import { useGlobalConfigStore } from '@/stores/GlobalConfigStore'
|
||||
import { useTabsViewStore } from '@/stores/TabsViewStore'
|
||||
import { useMenuStore } from '@/stores/MenuStore'
|
||||
import { GlobalLayoutMode } from '@/consts/GlobalConstants'
|
||||
import { computed } from 'vue'
|
||||
import GlobalSettings from '@/views/components/global/GlobalSettings.vue'
|
||||
const globalConfigStore = useGlobalConfigStore()
|
||||
const menuStore = useMenuStore()
|
||||
const tabsViewStore = useTabsViewStore()
|
||||
const showLeftMenu = computed(() => {
|
||||
return globalConfigStore.layoutMode === GlobalLayoutMode.LEFT
|
||||
})
|
||||
menuStore.loadBaseTopMenus()
|
||||
menuStore.loadBusinessMenus()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user