路由修正

This commit is contained in:
2025-11-14 19:17:49 +08:00
parent 9e4cfc1200
commit cb401eebe1
8 changed files with 54 additions and 98 deletions

View File

@@ -49,11 +49,12 @@ defineProps<{
}>();
const route = useRoute();
console.log(route.path);
// 获取兄弟路由(计算属性,确保响应式更新)
const menus = computed(() => {
return getParentChildrenRoutes(route);
});
console.log(menus.value);
// 获取完整路径
function getFullPath(menu: RouteRecordRaw): string {