You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
832 B
38 lines
832 B
5 years ago
|
<template>
|
||
|
<div class="common-layout">
|
||
|
<div class="content"><slot></slot></div>
|
||
|
<page-footer :link-list="footerLinks" :copyright="copyright"></page-footer>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import PageFooter from '@/layouts/footer/PageFooter'
|
||
|
import {mapState} from 'vuex'
|
||
|
|
||
|
export default {
|
||
|
name: 'CommonLayout',
|
||
|
components: {PageFooter},
|
||
|
computed: {
|
||
|
...mapState('setting', ['footerLinks', 'copyright'])
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="less">
|
||
|
.common-layout{
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
height: 100vh;
|
||
|
overflow: auto;
|
||
|
background: #f0f2f5 url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg') no-repeat center 110px;
|
||
|
background-size: 100%;
|
||
|
.content{
|
||
|
padding: 32px 0;
|
||
|
flex: 1;
|
||
|
@media (min-width: 768px){
|
||
|
padding: 112px 0 24px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|