F route transitioin

This commit is contained in:
zhenorzz 2021-05-24 18:28:38 +08:00
parent b9d74c73d5
commit 6363035925

View File

@ -1,7 +1,7 @@
<template>
<section class="app-main">
<router-view v-slot="{ Component }" :key="key">
<transition name="fade-transform" mode="out-in" tag="div">
<router-view v-slot="{ Component }">
<transition name="fade-transform" mode="out-in">
<keep-alive :include="cachedViews">
<component :is="Component" />
</keep-alive>
@ -21,9 +21,6 @@ export default defineComponent({
: []
// return this.$store.state.tagsView.cachedViews
},
key() {
return this.$route.path
},
},
})
</script>