路由修正
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user