<template>
  <div class="back_box">
    <i class="iconfont icon_return" @click="GoBack" />
    <slot />
  </div>
</template> 

<script>
export default {
  name: 'GoBack',
  inject: ['setTabActive'],
  methods: {
    GoBack() {
      this.setTabActive()
    }
  }
}
</script>

<style lang="scss" scoped>
.back_box {
  margin-bottom: 40px;
  font-size: 16px;
  .icon_return {
    margin-right: 10px;
    cursor: pointer;
  }
}
</style>