We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vben Admin V5
layout中的transformComponent同一路由会执行两次,复现在官方DEMO中
content.vue
function transformComponent( component: VNode, route: RouteLocationNormalizedLoadedGeneric, ) { const routeName = route.name as string; // 如果组件没有 name,则直接返回 if (!routeName) { return component; } const componentName = (component.type as any).name; // 已经设置过 name,则直接返回 if (componentName) { return component; } // componentName 与 routeName 一致,则直接返回 if (componentName === routeName) { return component; } // 设置 name component.type ||= {}; (component.type as any).name = routeName; return component; }
windows 10
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
Vben Admin V5
Describe the bug?
layout中的transformComponent同一路由会执行两次,复现在官方DEMO中
Reproduction
content.vue
System Info
Relevant log output
Validations
The text was updated successfully, but these errors were encountered: