mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-27 13:46:41 +08:00
fix: After the static route is switched, the interface goes blank
This commit is contained in:
parent
e035eab223
commit
dc60ea37ee
@ -43,13 +43,14 @@ function resetScroll() {
|
||||
@after-enter="appStore.setContentXScrollable(false)"
|
||||
>
|
||||
<KeepAlive :include="routeStore.cacheRoutes">
|
||||
<component
|
||||
:is="Component"
|
||||
v-if="appStore.reloadFlag"
|
||||
:key="tabStore.getTabIdByRoute(route)"
|
||||
:class="{ 'p-16px': showPadding }"
|
||||
class="flex-grow bg-layout transition-300"
|
||||
/>
|
||||
<div class="size-full" :key="tabStore.getTabIdByRoute(route)"
|
||||
:class="{ 'p-16px': showPadding }">
|
||||
<component
|
||||
:is="Component"
|
||||
v-if="appStore.reloadFlag"
|
||||
class="flex-grow bg-layout transition-300"
|
||||
/>
|
||||
</div>
|
||||
</KeepAlive>
|
||||
</Transition>
|
||||
</RouterView>
|
||||
|
Loading…
Reference in New Issue
Block a user