12 lines
249 B
Vue
12 lines
249 B
Vue
<script setup lang="ts">
|
|
// 根组件:仅承载路由出口
|
|
</script>
|
|
|
|
<template>
|
|
<router-view v-slot="{ Component }">
|
|
<transition name="page" mode="out-in">
|
|
<component :is="Component" />
|
|
</transition>
|
|
</router-view>
|
|
</template>
|