-
+
+
![]()
+
{{ item.title }}
{{ DateFormat(new Date(item.published_at * 1000), 'yyyy.MM.dd') }}
@@ -51,8 +53,6 @@ const dataList = ref([]);
const placeholder = ref('');
const hasMore = ref(false);
-console.log(props);
-
onMounted(()=>{
getList();
});
@@ -114,11 +114,19 @@ const goDetail = (id) => {
margin-bottom: 20px;
color: #333;
cursor: pointer;
- img{
+ .img{
width: 100%;
height: 264px;
- display: block;
background-color: #666;
+ overflow: hidden;
+ img{
+ object-fit: cover;
+ display: block;
+ background-color: #666;
+ &[src='']{
+ display: none;
+ }
+ }
}
.title{
height: 80px;