<template>
  <!-- 面包屑 -->
  <div class="breadcrumb">
    <span class="back"
          @click="$router.back()">返回&emsp;></span>
    <span v-if="data[1]">{{ data[1].name }}</span>
  </div>
</template>

<script>
export default {
  props: ['data'],
  data () {
    return {

    };
  },
  methods: {

  },
};
</script>
<style lang="scss" scoped>
.breadcrumb {
    margin: 4px 0 16px;
    span {
        color: #0b1d30;
    }
    .back {
        margin-right: 12px;
        color: $main-color;
        cursor: pointer;
    }
}
</style>