mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
34 lines
1015 B
Vue
34 lines
1015 B
Vue
<template>
|
|
<div>
|
|
<admin-header/>
|
|
<admin-sidebar/>
|
|
<div class="content-box" :class="{ 'content-collapse': sidebar.collapse }">
|
|
<admin-tags/>
|
|
<div class="content">
|
|
<router-view v-slot="{ Component }">
|
|
<transition name="move" mode="out-in">
|
|
<keep-alive :include="tags.nameList">
|
|
<component :is="Component"></component>
|
|
</keep-alive>
|
|
</transition>
|
|
</router-view>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script setup>
|
|
import {useSidebarStore} from '@/store/sidebar';
|
|
import {useTagsStore} from '@/store/tags';
|
|
import AdminHeader from "@/components/admin/AdminHeader.vue";
|
|
import AdminSidebar from "@/components/admin/AdminSidebar.vue";
|
|
import AdminTags from "@/components/admin/AdminTags.vue";
|
|
|
|
const sidebar = useSidebarStore();
|
|
const tags = useTagsStore();
|
|
</script>
|
|
|
|
<style lang="stylus">
|
|
@import '@/assets/css/main.css';
|
|
@import '@/assets/css/color-dark.css';
|
|
@import '@/assets/iconfont/iconfont.css';
|
|
</style> |