<template>
  <div class="layout" :class="{app: appFlag}">
    <keep-alive>
      <router-view></router-view> 
    </keep-alive>
    <tabbar v-if="!appFlag"></tabbar>
  </div>
</template>
<script>
import tabbar from './tabbar'
import { mapGetters } from "vuex";
export default {
  components: {
    tabbar
  },
  data () {
    return {
      show: false,
    }
  },
  computed: {
    ...mapGetters(["cartList"]),
  },
}
</script>
<style lang="less" scoped>
.layout {
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px;
  &.app {
    padding-bottom: 0px;
  }
}
</style>