123456789101112131415161718192021222324252627282930313233343536 |
- <template>
- <div class="news-author__wrapper">
- <!-- <div class="news-author__figure">
- <img
- class="news-author__img"
- :src="avatar"
- :alt="name"
- />
- </div> -->
- <!-- <div class="news-author__title">
- {{ name }}
- </div> -->
- </div>
- </template>
- <script>
- export default {
- props: {
- news: {
- type: Object,
- },
- },
- computed: {
- name() {
- // return this.news.author ? this.news.author.name : '"ИА Амител"';
- return '"ИА Амител"';
- },
- avatar() {
- return this.news.author ? this.news.author.img : require(`~/assets/img/authors/author1.jpg`);
- },
- },
- };
- </script>
- <style>
- </style>
|