2024-04-25 13:03:55 +08:00
|
|
|
<template>
|
2024-05-06 00:20:09 +08:00
|
|
|
<a-layout class="layout">
|
|
|
|
|
<Aside />
|
|
|
|
|
<a-layout>
|
|
|
|
|
<Header />
|
|
|
|
|
<Main />
|
|
|
|
|
<Footer v-if="isFooter" />
|
|
|
|
|
</a-layout>
|
|
|
|
|
</a-layout>
|
2024-04-25 13:03:55 +08:00
|
|
|
</template>
|
|
|
|
|
|
2024-05-06 00:20:09 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import Aside from "@/layout/components/Aside/index.vue";
|
|
|
|
|
import Header from "@/layout/components/Header/index.vue";
|
|
|
|
|
import Main from "@/layout/components/Main/index.vue";
|
|
|
|
|
import Footer from "@/layout/components/Footer/index.vue";
|
|
|
|
|
import { storeToRefs } from "pinia";
|
|
|
|
|
import { useThemeConfig } from "@/store/modules/theme-config";
|
2024-04-25 13:03:55 +08:00
|
|
|
|
2024-05-06 00:20:09 +08:00
|
|
|
defineOptions({ name: "LayoutMixing" });
|
|
|
|
|
|
|
|
|
|
const themeStore = useThemeConfig();
|
|
|
|
|
let { isFooter } = storeToRefs(themeStore);
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.layout {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
}
|
|
|
|
|
</style>
|