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)"
|
@after-enter="appStore.setContentXScrollable(false)"
|
||||||
>
|
>
|
||||||
<KeepAlive :include="routeStore.cacheRoutes">
|
<KeepAlive :include="routeStore.cacheRoutes">
|
||||||
<component
|
<div class="size-full" :key="tabStore.getTabIdByRoute(route)"
|
||||||
:is="Component"
|
:class="{ 'p-16px': showPadding }">
|
||||||
v-if="appStore.reloadFlag"
|
<component
|
||||||
:key="tabStore.getTabIdByRoute(route)"
|
:is="Component"
|
||||||
:class="{ 'p-16px': showPadding }"
|
v-if="appStore.reloadFlag"
|
||||||
class="flex-grow bg-layout transition-300"
|
class="flex-grow bg-layout transition-300"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</KeepAlive>
|
</KeepAlive>
|
||||||
</Transition>
|
</Transition>
|
||||||
</RouterView>
|
</RouterView>
|
||||||
|
Loading…
Reference in New Issue
Block a user