<template>
  <div class="layout">
    <div class="layout__container">
      <div class="layout__container__content">
        <router-view></router-view>
      </div>
    </div>
    <Loading :isShow="isPageLoading"></Loading>
  </div>
</template>

<script>
import Loading from '@/components/Loading'
import { mapGetters } from 'vuex'
export default {
  name: 'index',
  components: {
    Loading
  },
  computed: {
    ...mapGetters({
      isPageLoading: 'isPageLoading'
    })
  }
}
</script>

<style lang="less" scoped>
.layout {
  width: 100%;
  height: 100%;
  &__container {
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    &__content {
      -webkit-overflow-scrolling: touch;
      overflow: hidden;
      overflow-y: auto;
      width: 100%;
      height: 100%;
    }
  }
}
</style>
