mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:39:34 +08:00
fix(comp): fix the memory overflow problem of component containing keywords
This commit is contained in:
@@ -54,7 +54,10 @@ export default defineComponent({
|
||||
renderComp()
|
||||
);
|
||||
|
||||
return unref(getEnableTransition) ? (
|
||||
if (!unref(getEnableTransition)) {
|
||||
return PageContent;
|
||||
}
|
||||
return (
|
||||
<Transition
|
||||
name={name || route.meta.transitionName || unref(getBasicTransition)}
|
||||
mode="out-in"
|
||||
@@ -62,8 +65,6 @@ export default defineComponent({
|
||||
>
|
||||
{() => PageContent}
|
||||
</Transition>
|
||||
) : (
|
||||
PageContent
|
||||
);
|
||||
},
|
||||
}}
|
||||
|
Reference in New Issue
Block a user