<!-- 模板部分，生成HTML -->
<template>
  <div id="app">
    <Header />
    <RouterView></RouterView>
  </div>
</template>

<!-- 控制模板数据与行为 -->
<script>
//import MainPage from './components/MainPage.vue';
import Header from './components/Header.vue';
import {RouterView} from 'vue-router';
export default {
  name: 'App',
  components: {
    Header,
    RouterView
  }
}
</script>

<!-- 样式部分,定义CSS样式 -->
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
