jscdn.ink/src/app.vue

55 lines
852 B
Vue

<template>
<Header />
<div class="main-body"><router-view /></div>
<Footer />
</template>
<script>
import Header from './components/header.vue'
import Footer from './components/footer.vue'
export default {
components: { Header, Footer },
mounted() {
var user = localStorage.getItem('user')
if (user) {
this.$store.user = JSON.parse(user)
}
}
}
</script>
<style lang="scss">
::-webkit-scrollbar {
width: 6px;
background: var(--color-plain-3);
}
::-webkit-scrollbar-thumb {
background: var(--color-dark-a);
&:hover {
background: var(--color-dark-1);
}
}
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>
免费、快速、开放的 JS CDN 服务 https://www.jscdn.ink/