后台管理功能进行一些优化

This commit is contained in:
xiaowang
2026-02-28 14:32:28 +08:00
parent 36e2950a99
commit 725cb07fcf
23 changed files with 2297 additions and 92 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ const route = useRoute()
const isHiddenNav = computed(() => {
// 检查当前路由及其所有父路由是否有 hideNav: true
const result = route.matched.some(r => r.meta.hideNav)
// 或者检查是否是后台页面
const result = route.matched.some(r => r.meta.hideNav) || route.matched.some(r => r.meta.isAdmin)
console.log('isHiddenNav:', result, 'matched routes:', route.matched)
return result
})