<template>
  <div class="website-frame">
    <mtaheader></mtaheader>
    <div class="nuxt-box">
      <Nuxt />
    </div>
    <mtafooter></mtafooter>
  </div>
</template>

<script>
  import Mtafooter from '~/components/footer.vue'
  import Mtaheader from '~/components/header.vue'
  export default {
    name:    'mtaFooter',
    components: {
      Mtafooter,
      Mtaheader
    },
    //监测路由变化，滚动条置于最上方
    watch: {
      $route: function(to, from) {
        document.body.scrollTop = 0;
        document.documentElement.scrollTop = 0;
      }
    },
  }
</script>
<style lang="scss" scoped>
  .nuxt-box:not(.client-index-page){width: 100%;margin-top: 80px;}
</style>
