report-ui/src/App.vue

31 lines
521 B
Vue
Raw Normal View History

2024-01-31 14:12:08 +08:00
<template>
<div id="app">
<transition name="modal-fade">
<router-view :key="$route.fullPath" />
</transition>
</div>
</template>
<script>
import "@/assets/iconfont/iconfont.css";
export default {
name: "App",
watch: {
$route(to, from) {
console.log("----------路由变化", to, from);
}
},
};
</script>
<style lang="scss">
.modal-fade-enter,
.modal-fade-leave-active {
opacity: 0;
}
.modal-fade-enter-active,
.modal-fade-leave-active {
transition: opacity 1s ease;
}
</style>