2020-09-27 22:27:25 +08:00
|
|
|
<template>
|
|
|
|
<n-layout position="absolute" class="root-layout">
|
2021-01-12 23:05:51 +08:00
|
|
|
<site-header />
|
2020-12-12 13:51:22 +08:00
|
|
|
<n-layout
|
|
|
|
class="home-layout"
|
|
|
|
style="top: 64px; overflow: hidden"
|
|
|
|
position="absolute"
|
|
|
|
>
|
2020-09-27 22:27:25 +08:00
|
|
|
<router-view />
|
|
|
|
</n-layout>
|
|
|
|
</n-layout>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-01-13 12:01:02 +08:00
|
|
|
import { onMounted, inject } from 'vue'
|
2020-09-27 22:27:25 +08:00
|
|
|
import SiteHeader from './SiteHeader.vue'
|
|
|
|
import { loadingBarApiRef } from './routes/router'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'Site',
|
2020-11-03 15:10:29 +08:00
|
|
|
components: {
|
|
|
|
SiteHeader
|
|
|
|
},
|
2021-01-13 12:01:02 +08:00
|
|
|
setup () {
|
|
|
|
const loadingBar = inject('loadingBar')
|
|
|
|
onMounted(() => {
|
|
|
|
loadingBarApiRef.value = loadingBar
|
|
|
|
loadingBar.finish()
|
|
|
|
})
|
2020-09-27 22:27:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2020-11-01 19:35:00 +08:00
|
|
|
<style scoped>
|
2020-09-27 22:27:25 +08:00
|
|
|
.demo {
|
|
|
|
z-index: auto;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
min-width: 1080px;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.root-layout.n-layout.n-light-theme {
|
2020-12-12 13:51:22 +08:00
|
|
|
background-color: #fff;
|
2020-09-27 22:27:25 +08:00
|
|
|
}
|
|
|
|
.home-layout.n-layout.n-light-theme {
|
2020-12-12 13:51:22 +08:00
|
|
|
background-color: #fff;
|
2020-09-27 22:27:25 +08:00
|
|
|
}
|
|
|
|
</style>
|