feat(desktop): 接通无边框窗口标题栏控制
This commit is contained in:
+14
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user