123456789101112131415161718192021222324252627282930 |
- <template>
- <div :class="'w-full h-screen flex flex-col transition-spacing duration-300 ease-linear overflow-hidden ' + mlClass">
-
- <Header />
-
-
-
- <div class="p-1 sm:p-2 max-w-full h-screen overflow-auto sm:overflow-x-hidden">
- <router-view />
- {{ year }}
- </div>
- </div>
- </template>
- <script lang="ts" setup>
- import { computed } from 'vue'
- import { useAppStore } from '/admin/stores/modules/app'
- const appStore = useAppStore()
- const mlClass = computed(() => {
- return appStore.isExpand ? 'ml-0 sm:ml-56' : 'ml-0 sm:ml-16'
- })
- const year = computed(() => {
- const date = new Date()
- return date.getFullYear()
- })
- </script>
|