2022-10-09 19:19:06 +08:00
|
|
|
<template>
|
2022-10-16 22:59:44 +08:00
|
|
|
<Sidebar />
|
|
|
|
<router-view />
|
2022-10-09 19:19:06 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-10-16 22:59:44 +08:00
|
|
|
import fetch from '@/lib/fetch'
|
|
|
|
|
2022-10-10 20:01:25 +08:00
|
|
|
import Sidebar from './components/sidebar.vue'
|
|
|
|
|
2022-10-09 19:19:06 +08:00
|
|
|
export default {
|
2022-10-10 20:01:25 +08:00
|
|
|
components: { Sidebar },
|
2022-10-09 19:19:06 +08:00
|
|
|
data() {
|
|
|
|
return {}
|
2022-10-10 20:01:25 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
2022-10-16 22:59:44 +08:00
|
|
|
this.getVersion()
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
getVersion() {
|
|
|
|
fetch('/version').then(r => {
|
|
|
|
this.$store.version = r.version
|
|
|
|
})
|
|
|
|
}
|
2022-10-09 19:19:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2022-10-10 20:01:25 +08:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
html {
|
|
|
|
width: 840px;
|
|
|
|
height: 540px;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
font-size: 14px;
|
|
|
|
color: var(--color-dark-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.app {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-11-21 19:26:02 +08:00
|
|
|
background: var(--color-plain-1);
|
2022-10-10 20:01:25 +08:00
|
|
|
}
|
|
|
|
.holder {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
</style>
|