<template>
	<div>
		<van-tabbar v-model="active">
			<van-tabbar-item>首页</van-tabbar-item>
			<van-tabbar-item>我的</van-tabbar-item>
		</van-tabbar>

		<div v-if="this.active === 0">
			<HomePage></HomePage>
		</div>
		<div v-else>
			<My></My>
		</div>
	</div>
</template>

<script>

import HomePage from './components/HomePage.vue'
import My from './components/My.vue'
export default {
	name: 'email',
	components: {
		HomePage,
		My
	},
	data() {
		return {
			active: 0,
		}
	},
}
</script>

<style scoped lang="less">

</style>
