mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
refactor(layout): 移除 basicLayout 组件中的注释代码
- 删除了 basicLayout 组件中不必要的注释代码 - 优化了模板结构,提高了代码的可读性和维护性
This commit is contained in:
@@ -130,12 +130,12 @@
|
||||
<div class="header-centent">
|
||||
<router-view v-slot="{ Component, route }">
|
||||
<transition name="fade" mode="out-in">
|
||||
<!-- <div :key="route.path"> -->
|
||||
<div :key="route.path">
|
||||
<keep-alive v-if="route.meta.keepAlive">
|
||||
<component :is="Component" />
|
||||
</keep-alive>
|
||||
<component :is="Component" v-else />
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</transition>
|
||||
</router-view>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user