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%;
|
|
|
|
background: #f7f8fb;
|
|
|
|
}
|
|
|
|
.holder {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
</style>
|