完善权限的管理和校验

This commit is contained in:
xiaowang
2026-02-26 17:54:18 +08:00
parent 9cc74c26e6
commit 8f81cfa471
14 changed files with 309 additions and 63 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ import BottomNav from './components/BottomNav.vue'
const route = useRoute()
const isHiddenNav = computed(() => {
return route.meta.hideNav as boolean
// 检查当前路由及其所有父路由是否有 hideNav: true
const result = route.matched.some(r => r.meta.hideNav)
console.log('isHiddenNav:', result, 'matched routes:', route.matched)
return result
})
</script>