This commit is contained in:
2021-09-25 15:12:02 +08:00
parent 943c07051c
commit 24aa6d50dd
25 changed files with 840 additions and 24 deletions

View File

@@ -1,12 +1,18 @@
<template>
<router-view v-slot="{ Component }">
<keep-alive :include="includeList">
<component :is="Component"></component>
<div id="layout">
<Header/>
<component :is="Component"></component>
<Footer/>
</div>
</keep-alive>
</router-view>
</template>
<script lang="ts" setup>
import Footer from '@/components/Footer'
import Header from '@/components/Header'
import { ref, watch } from 'vue'
import { RouteLocationNormalizedLoaded, useRoute } from 'vue-router'
@@ -21,7 +27,29 @@ watch(route, (to: RouteLocationNormalizedLoaded) => {
</script>
<style lang="less">
* {
padding: 0;
margin: 0;
}
body {
background: #f7f8fa;
font-size: 14px;
}
#layout {
.container {
width: 1200px;
margin: 0 auto;
min-height: calc(100vh - 164px);
}
}
.wrap {
width: 1200px;
margin: 0 auto;
}
.breadcrumb {
padding: 32px 0;
}
</style>