jscdn.ink/src/app.vue

55 lines
852 B
Vue
Raw Normal View History

2022-12-29 19:05:15 +08:00
<template>
<Header />
2023-01-16 18:17:30 +08:00
<div class="main-body"><router-view /></div>
2022-12-29 19:05:15 +08:00
<Footer />
</template>
<script>
import Header from './components/header.vue'
import Footer from './components/footer.vue'
export default {
2023-01-16 18:17:30 +08:00
components: { Header, Footer },
mounted() {
var user = localStorage.getItem('user')
if (user) {
this.$store.user = JSON.parse(user)
}
}
2022-12-29 19:05:15 +08:00
}
</script>
<style lang="scss">
2023-01-16 18:17:30 +08:00
::-webkit-scrollbar {
width: 6px;
background: var(--color-plain-3);
}
::-webkit-scrollbar-thumb {
background: var(--color-dark-a);
&:hover {
background: var(--color-dark-1);
}
}
2022-12-29 19:05:15 +08:00
body {
line-height: 1.5;
font-size: 14px;
color: var(--color-dark-1);
}
a {
color: inherit;
text-decoration: none;
}
.app {
display: flex;
flex-direction: column;
width: 100%;
min-height: 100vh;
}
.main-body {
flex: 1;
}
</style>