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
function loadRoutes(routes: RouteRecordRaw[], parentPath = "") { routes.forEach((route) => { const path = route.path.startsWith("/") ? route.path : ${parentPath}/${route.path}`; if (excludedRoutes.value.includes(route.path) || isExternal(route.path)) return;
function loadRoutes(routes: RouteRecordRaw[], parentPath = "") { routes.forEach((route) => { const path = route.path.startsWith("/") ? route.path :
if (route.children) { // 去除静态路由父级路由/导致路由出现//bug loadRoutes(route.children, path !== "/" ? path : ""); } else if (route.meta?.title) { const title = route.meta.title === "dashboard" ? "首页" : route.meta.title; menuItems.value.push({ title, path, name: typeof route.name === "string" ? route.name : undefined, icon: route.meta.icon, redirect: typeof route.redirect === "string" ? route.redirect : undefined, }); }
}); }`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
function loadRoutes(routes: RouteRecordRaw[], parentPath = "") { routes.forEach((route) => { const path = route.path.startsWith("/") ? route.path :
${parentPath}/${route.path}`;if (excludedRoutes.value.includes(route.path) || isExternal(route.path)) return;
});
}`
The text was updated successfully, but these errors were encountered: