<template>
  <div class="material">
    <app-header></app-header>
    <router-view class="body" v-if="$route.name=='works'"/>
    <div class="body" v-else>
      <app-aside></app-aside>
      <app-main></app-main>
    </div>
  </div>
</template>

<script>
import AppAside from "./aside";
import AppHeader from "./header";
import AppMain from "./Main";

export default {
  components:{
    AppAside,
    AppHeader,
    AppMain
  }
}
</script>

<style lang="less" scoped>
.material{
  position: relative;
  .body{
    max-width: 1280px;
    margin: 30px auto;
    display: flex;
    padding-top: 70px;
  }
}

</style>