隐藏导航栏 - 实现全屏沉浸式体验
This commit is contained in:
@@ -26,8 +26,8 @@ const route = useRoute()
|
|||||||
|
|
||||||
// 计算是否显示导航栏和页脚
|
// 计算是否显示导航栏和页脚
|
||||||
const shouldShowNavBar = computed(() => {
|
const shouldShowNavBar = computed(() => {
|
||||||
// 登录和注册页面不显示导航栏
|
// 所有页面都不显示导航栏
|
||||||
return !['login', 'register'].includes(route.name)
|
return false
|
||||||
})
|
})
|
||||||
|
|
||||||
const shouldShowFooter = computed(() => {
|
const shouldShowFooter = computed(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user