<template>
  <div>
    <div class="lrBox">
      <!-- <app-header /> -->
      <left-menu />
      <div class="app-content">
        <app-header />
        <!-- <mid-bread-crumb /> -->
        <!-- <left-menu v-if="$route.fullPath !== '/search/all'" /> -->
        <el-main class="main-content">
          <app-main />
        </el-main>
      </div>
    </div>
  </div>
</template>

<script>
import LeftMenu from './LeftMenu'
import AppMain from './AppMain'
import AppHeader from './AppHeader'
// import MidBreadCrumb from './MidBreadCrumb'

export default {
  components: {
    LeftMenu,
    AppMain,
    AppHeader
    // MidBreadCrumb
  },
  mounted() {
    console.log(this.$route)
  },
  computed: {
    key() {
      return this.$route.fullPath
    }
  }
}
</script>

<style type="text/scss" lang="scss" scoped>
.lrBox {
  display: flex;
}
  .app-content {
    box-sizing: border-box;
    overflow: auto;
    flex: 1;
    & > div {
      display: block;
    }
    .main-content {
      padding: 0 20px;
      padding: 0;
      // flex: 1;
    }
  }
</style>
