feat(desktop): 接通无边框窗口标题栏控制

This commit is contained in:
2026-09-07 17:48:51 +08:00
parent a63398d89c
commit 4288f90558
9 changed files with 115 additions and 20 deletions
+14 -2
View File
@@ -2,17 +2,29 @@
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import AppShell from '@/components/common/AppShell.vue'
import TitleBar from '@/components/common/TitleBar.vue'
import { isDesktop } from '@/services/platform/desktop'
const route = useRoute()
const isVaultEntry = computed(() => route.path === '/')
const desktop = isDesktop()
</script>
<template>
<AppShell v-if="!isVaultEntry">
<div v-if="isVaultEntry" class="entry-shell">
<TitleBar v-if="desktop" />
<router-view />
</div>
<AppShell v-else>
<router-view />
</AppShell>
<router-view v-else />
</template>
<style scoped>
.entry-shell {
display: flex;
flex-direction: column;
width: 100vw;
height: 100vh;
}
</style>