数据结构优化
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<!-- Main Content -->
|
||||
<!-- Conditional classes: Apply max-w-7xl only for frontend pages -->
|
||||
<main :class="[
|
||||
isAdminOrLogin ? 'w-full h-full' : 'pt-32 pb-20 px-6 max-w-7xl mx-auto relative z-10'
|
||||
isAdminOrLoginOrBlog ? 'w-full h-full' : 'pt-32 pb-20 px-6 max-w-7xl mx-auto relative z-10'
|
||||
]">
|
||||
<router-view />
|
||||
</main>
|
||||
@@ -58,6 +58,12 @@ const isAdminOrLogin = computed(() => {
|
||||
return path.startsWith('/admin') || path === '/login'
|
||||
})
|
||||
|
||||
// Check if current route is Admin or Login page
|
||||
const isAdminOrLoginOrBlog = computed(() => {
|
||||
const path = route.path
|
||||
return path.startsWith('/admin') || path === '/login' || path.startsWith('/blog/')
|
||||
})
|
||||
|
||||
// 应用网站配置到页面标题和meta标签
|
||||
const applySiteSettings = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user