<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
	name: 'LayOut'
})
</script>

<template>
	<!-- 设置路由出口 -->
	<router-view v-slot="{ Component, route }">
		<transition name="animation" mode="out-in">
			<component :is="Component" :key="route.path" />
		</transition>
	</router-view>
</template>
