<template>
  <div class="TT-mine-wrapper">
    <MainSidebar/>
    <div class="mine-main">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive"></router-view>
      </keep-alive>
      <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
  </div>
</template>

<script>
import MainSidebar from './main-sidebar'

export default {
  name: 'index',
  components: {
    MainSidebar
  }
}
</script>

<style lang="scss" scoped>
.TT-mine-wrapper {
  position: relative;
  left: 0;
  top: 0;
  // 左侧导航宽度
  padding: 20px 20px 20px 200px;
  border-top: 15px solid #f1f4f5;
}

.mine-main {
  width: 100%;
}
</style>
