vue-antd-admin/src/layouts/RouteView.vue
2020-06-18 15:01:39 +08:00

26 lines
542 B
Vue

<template>
<page-toggle-transition :animate="animate.name" :direction="animate.direction">
<keep-alive v-if="multiPage">
<router-view />
</keep-alive>
<router-view v-else />
</page-toggle-transition>
</template>
<script>
import PageToggleTransition from '../components/transition/PageToggleTransition';
import {mapState} from 'vuex'
export default {
name: 'RouteView',
components: {PageToggleTransition},
computed: {
...mapState('setting', ['multiPage', 'animate'])
}
}
</script>
<style scoped>
</style>