2022-12-05 23:01:12 +08:00
|
|
|
<template>
|
|
|
|
<div :class="'w-full h-screen flex flex-col transition-spacing duration-300 ease-linear overflow-hidden ' + mlClass">
|
|
|
|
<!-- Header -->
|
|
|
|
<Header />
|
|
|
|
<!-- Tag view -->
|
|
|
|
<!--<div class=""></div>-->
|
|
|
|
<!-- Container -->
|
2023-01-12 10:10:17 +08:00
|
|
|
<div class="p-1 sm:p-2 max-w-full h-screen overflow-auto sm:overflow-x-hidden">
|
2023-04-27 07:13:19 +08:00
|
|
|
<div class="min-h-[calc(100vh-8rem)]">
|
|
|
|
<router-view />
|
|
|
|
</div>
|
|
|
|
<div class="w-full text-center text-gray-400 h-4 leading-10">
|
|
|
|
<el-link href="https://catchadmin.com/">CatchAdmin 管理系统 </el-link> @copyright 2018 ~ {{ year }}
|
|
|
|
</div>
|
2022-12-05 23:01:12 +08:00
|
|
|
</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>
|