<script setup lang="ts">
import { useRoute } from "vue-router";
const route = useRoute()
const emit:any = defineEmits([]);
const props = defineProps({
  data: Object,
});
const data = props.data
</script>
<template>
       <div>
            <div class="title-tag2 text-left">相关推荐</div>
            <div class="relNewBox container text-left ">
                <a class="ustify-content-between d-flex relNewsList" :href="`${route.path}?categoryid=${item.categoryid}&id=${item.id}&isUrlId=1`" v-for="item in data" :key="item.id">
                    <div><img width="18" height="18" src="@/assets/img/news/arrowT.svg"> {{item.title}} </div>
                    <div>{{ item.createdate }}</div>
                </a>
            </div>
        </div>
</template>
<style lang="scss" scoped>

</style>
