<script setup>
	import JtHeader from './components/header.vue';
</script>
<template>
	<!-- 顶栏容器 -->
	<JtHeader />

	<!-- 控制路由页面是否缓存 -->
	<router-view v-slot="{ Component }">
		<keep-alive>
			<component :is=" Component" v-if="$route.meta.keepAlive" />
		</keep-alive>
		<component :is="Component" v-if="!$route.meta.keepAlive" />
	</router-view>
</template>

<script>
	export default {
		name: 'MainView',

		/* 数据 */
		data() {
			return {}
		},

		/* 方法 */
		methods: {
	
		},
		mounted() {

		}
	}
</script>

<style lang="scss" scoped>
	
</style>
