|
|
@ -1,23 +1,19 @@ |
|
|
|
<template> |
|
|
|
<div id="container"> |
|
|
|
<div> |
|
|
|
<Header></Header> |
|
|
|
</div> |
|
|
|
<div class="container" style="display: flex"> |
|
|
|
<div class="home_menu"> |
|
|
|
<Menu></Menu> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<Header></Header> |
|
|
|
|
|
|
|
<main> |
|
|
|
<div class="main"> |
|
|
|
<router-view v-slot="{ Component }"> |
|
|
|
<keep-alive :exclude="['Home']"> |
|
|
|
<component :is="Component" /> |
|
|
|
</keep-alive> |
|
|
|
</router-view> |
|
|
|
</div> |
|
|
|
<div class="main-content flex"> |
|
|
|
<Menu></Menu> |
|
|
|
<main class="component-page"> |
|
|
|
<router-view v-slot="{ Component }"> |
|
|
|
<keep-alive :exclude="['Home']"> |
|
|
|
<component :is="Component" /> |
|
|
|
</keep-alive> |
|
|
|
</router-view> |
|
|
|
</main> |
|
|
|
</div> |
|
|
|
|
|
|
|
<Footer></Footer> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script setup lang="ts"> |
|
|
@ -25,6 +21,7 @@ import Header from "../components/Header.vue"; |
|
|
|
import { onMounted, watch } from "vue"; |
|
|
|
import { useRouter, useRoute } from "vue-router"; |
|
|
|
import Menu from "@/views/components/Menu.vue"; |
|
|
|
import Footer from "@/views/components/Footer.vue"; |
|
|
|
defineOptions({ |
|
|
|
name: "Home", |
|
|
|
}); |
|
|
@ -43,17 +40,4 @@ watch( |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@use "@/assets/style/mixin.scss" as *; |
|
|
|
.main { |
|
|
|
display: flex; |
|
|
|
width: 218px; |
|
|
|
background: rgb(255, 255, 255); |
|
|
|
height: 1640px; |
|
|
|
} |
|
|
|
|
|
|
|
.home_menu { |
|
|
|
background: rgb(255, 255, 255); |
|
|
|
height: 1724px; |
|
|
|
width: 450px; |
|
|
|
color: $textGray; |
|
|
|
} |
|
|
|
</style> |