<template>
  <section class="head">
    <img src="~/static/img/back.png" alt @click="go">
    <span>{{tname}}</span>
  </section>
</template>
<script>
export default {
  props: {
    tname: String, //定义传值的类型<br>
    required: true
  },
  methods: {
    go(e) {
      this.$router.go(-1)
    }
  },
  watch: {}
}
</script>
<style>
.head img {
  float: left;
  padding-left: 6px;
}
.head span {
  width: auto;
  padding: 0;
  padding-right: 20px;
}
</style>
