<template>
  <div class="base" :style="{'overflow-y':loading?'hidden':'auto'}">
    <transition name="fade" >
      <router-view/>
    </transition>
  </div>
</template>
<script>
  import bus from './lib/bus'
  export default {
    name: 'app',
    data () {
      return {
        loading:false
      }
    },
    beforeCreate:function(){

    },
    created:function () {

    },
    watch:{
      '$route':function (to,from) {
        console.log('--from--')
        sessionStorage.formPage = from.name
        console.log(sessionStorage.formPage)
        console.log('--to--')
        sessionStorage.toPage = to.name
        console.log(sessionStorage.toPage)
        const toDepth = to.path.split('/').length
        const fromDepth = from.path.split('/').length
      }
    },
    methods: {

    }
  }
</script>
