布局设置

This commit is contained in:
Gary Fu
2023-12-24 10:28:52 +08:00
parent bb40594f2a
commit 6e15f9e36c
8 changed files with 127 additions and 64 deletions

View File

@@ -1,11 +1,19 @@
<script setup>
import LeftMenu from '@/layout/LeftMenu.vue'
import TopNav from '@/layout/TopNav.vue'
import { useGlobalConfigStore } from '@/stores/GlobalConfigStore'
import { GlobalLayoutMode } from '@/consts/GlobalConstants'
import { computed } from 'vue'
const globalConfigStore = useGlobalConfigStore()
const showLeftMenu = computed(() => {
return globalConfigStore.layoutMode === GlobalLayoutMode.LEFT
})
</script>
<template>
<el-container class="index-container">
<el-aside
v-if="showLeftMenu"
class="index-aside"
width="auto"
>