This commit is contained in:
jilx951102 2024-11-20 06:35:52 -05:00 committed by GitHub
commit b9618aa1ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,7 @@ export default defineComponent({
trackRootNodes: hasTransition,
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'
}
return providerVNode