Blame view

src/layout/components/AppMain.vue 789 Bytes
任超 committed
1 2
<template>
  <section class="app-main">
yangwei committed
3
    <!-- <Breadcrumb v-if="judgeRoute()" /> -->
任超 committed
4 5 6 7 8 9
    <transition name="fade-transform" mode="out-in">
      <router-view />
    </transition>
  </section>
</template>
<script>
yangwei committed
10
import Breadcrumb from "@/components/Breadcrumb/index";
任超 committed
11 12
export default {
  name: 'AppMain',
yangwei committed
13 14 15 16 17 18 19 20 21 22 23 24
  components: {
    Breadcrumb
  },
  methods: {
    judgeRoute(){
      if (this.$route.path == '/home' || this.$route.path.indexOf('jsbwcx') > -1) {
        return false
      }else{
        return true
      }
    }
  },
任超 committed
25 26 27 28 29 30 31 32
  computed: {
    key () {
      return this.$route.path
    }
  }
}
</script>
<style lang="scss" scoped>
任超 committed
33 34 35 36 37 38 39
.hasTagsView {
  .app-main {
    overflow-x: auto;
    box-sizing: border-box;
    background-color: #EDF1F7;
    box-sizing: border-box;
  }
任超 committed
40 41
}
</style>