You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<NuxtLayout>
|
|
|
|
<NuxtPage keepalive :page-key="route => route.fullPath" />
|
|
|
|
</NuxtLayout>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
|
|
|
|
|
|
let app = useAppConfig()
|
|
|
|
let menu = useMenuStore()
|
|
|
|
onMounted(() => {
|
|
|
|
menu.default()
|
|
|
|
console.log('init app')
|
|
|
|
app.layout.size = [document.body.clientWidth, document.body.clientHeight]
|
|
|
|
window.onresize = () => {
|
|
|
|
app.layout.size = [document.body.clientWidth, document.body.clientHeight]
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style >
|
|
|
|
body,
|
|
|
|
html {
|
|
|
|
height: 100vh;
|
|
|
|
width: 100vw;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: var(--base-bg);
|
|
|
|
color: var(--base-txt);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 周围滑动留白 */
|
|
|
|
html {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#__nuxt {
|
|
|
|
height: 100vh;
|
|
|
|
width: 100vw;
|
|
|
|
}
|
|
|
|
</style>
|