12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <section class="head">
- <img src="~/static/img/back.png" alt @click="go">
- <span>{{tname}}</span>
- <!-- <nuxt-link :to="tolink">{{todos}}</nuxt-link> -->
- </section>
- </template>
- <script>
- export default {
- props: {
- tname: String, //定义传值的类型<br>
- // todos: String, //定义传值的类型<br>
- // tolink 这里有多个值,最好做成数组
-
- },
- mounted(){
- // 所有数据铺完了。。。忘记了
- },
- methods: {
- go(e) {
- this.$router.go(-1)
- }
- },
- watch: {}
- }
- </script>
- <style scoped lang="scss">
- .head {
- background-color: #fff;
- }
- .head img {
- float: left;
- padding-left: 6px;
- }
- .head span {
- width: auto;
- padding: 0;
- padding-right: 20px;
- }
- .head a{
- float: right;
- }
- </style>
|