This commit is contained in:
jilx951102 2024-11-19 15:12:44 -05:00 committed by GitHub
commit c927a8c62f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,7 @@ export default defineComponent({
trackRootNodes: hasTransition, trackRootNodes: hasTransition,
vnodeRef: pageRef, vnodeRef: pageRef,
}) })
if (import.meta.client && keepaliveConfig) { if (import.meta.client && keepaliveConfig && !(providerVNode.type as any).name) {
(providerVNode.type as any).name = (routeProps.Component.type as any).name || (routeProps.Component.type as any).__name || 'RouteProvider' (providerVNode.type as any).name = (routeProps.Component.type as any).name || (routeProps.Component.type as any).__name || 'RouteProvider'
} }
return providerVNode return providerVNode