<template>
	<div class="body">
		<Header></Header>
		<router-view></router-view>
		<Footer v-show="$route.meta.show"></Footer>
	</div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'

export default {
	name: 'App',
	components: {
		Header,
		Footer
	},
	// 当组件挂载完成后,触发接口数据
	mounted() {
		//通知Vuex触发categoryList这个方法
		this.$store.dispatch('categoryList')
	}
}
</script>

<style lang="less" scopd></style>
