Skip to content

Commit

Permalink
fix(projects): 修复页面切换动画开关不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
bundlejs committed Feb 28, 2022
1 parent f92d7ec commit 9d4ed61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/common/GlobalContent/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class="h-full bg-[#f6f9f8] dark:bg-[#101014] transition duration-300 ease-in-out"
>
<router-view v-slot="{ Component, route }">
<transition :name="theme.page.animateMode" mode="out-in" appear>
<transition :name="theme.page.animate ? theme.page.animateMode : undefined" mode="out-in" appear>
<keep-alive :include="routeStore.cacheRoutes">
<component :is="Component" v-if="app.reloadFlag" :key="route.path" />
</keep-alive>
Expand Down

0 comments on commit 9d4ed61

Please sign in to comment.