Commit 7f110e89 by lijiabin

【需求 17679】perf: 优化过渡效果

parent d4aece1f
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="bg-white rounded-lg shadow-sm min-h-500px"> <div class="bg-white rounded-lg shadow-sm min-h-500px">
<router-view v-slot="{ Component, route }"> <router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in"> <transition name="fade" mode="in-out">
<keep-alive> <keep-alive>
<component :is="Component" :key="getThirdLevelKey(route)" ref="componentRef" /> <component :is="Component" :key="getThirdLevelKey(route)" ref="componentRef" />
</keep-alive> </keep-alive>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment