<template>
|
<div style="height:100%;overflow:auto;">
|
<div class="content" style="margin:0;height:100%;">
|
<div class="page-header-index-wide" style="height:100%;">
|
<slot>
|
<!-- keep-alive -->
|
<keep-alive v-if="multiTab">
|
<router-view ref="content" />
|
</keep-alive>
|
<router-view v-else ref="content" />
|
</slot>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import { mapState } from 'vuex'
|
|
export default {
|
name: 'PageView',
|
computed: {
|
...mapState({
|
multiTab: state => state.app.multiTab
|
})
|
}
|
}
|
</script>
|
|
<style lang="less" scoped>
|
|
</style>
|