Skip to content

Commit

Permalink
[-] 移除侧边栏奇怪的动画
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Oct 6, 2024
1 parent ad14fec commit bee3f71
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
<the-header />
</n-layout-header>
<n-layout has-sider style="height: calc(100vh - 66px); bottom: 0">
<transition name="fade" mode="out-in" :duration="400">
<div :key="router.currentRoute.value.name">
<guest-sidebar v-if="showGuestSidebar" />
<main-sidebar v-if="showMainSidebar" />
</div>
</transition>
<div>
<guest-sidebar v-if="showGuestSidebar" />
<main-sidebar v-if="showMainSidebar" />
</div>
<n-layout :native-scrollbar="false">
<div class="content">
<router-view v-slot="{ Component }">
Expand Down

0 comments on commit bee3f71

Please sign in to comment.