1
1
<script setup>
2
+ import avatarDefault from ' ../../assets/img/avatar-default-opportunity.png'
2
3
import { onMounted , onUnmounted , reactive , ref } from " vue" ;
3
4
import helpers from " ../../helpers/helpers" ;
4
5
// example components
@@ -231,7 +232,7 @@ onUnmounted(() => {
231
232
class =" col-md-4 z-index-2 border-radius-xl mx-auto py-3 mt-2" >
232
233
<div class =" row-card" >
233
234
<div class =" card animate__animated animate__backInUp" :key =" index" >
234
- <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig'].url"
235
+ <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig']? .url ?? avatarDefault "
235
236
:title =" item.name" :description =" item.shortDescription" :href =" item.singleUrl"
236
237
@noticeClick =" detailsEditImage" :id =" item.id" />
237
238
<div class =" card-body text-center" >
@@ -246,7 +247,7 @@ onUnmounted(() => {
246
247
class =" col-md-4 z-index-2 border-radius-xl mx-auto py-3 mt-2" >
247
248
<div class =" row-card" >
248
249
<div class =" card" :key =" index" >
249
- <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig'].url"
250
+ <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig']? .url ?? avatarDefault "
250
251
:title =" item.name" :description =" item.shortDescription" :href =" item.singleUrl"
251
252
@noticeClick =" detailsEditImage" :id =" item.id" />
252
253
<div class =" card-body text-center" >
@@ -275,7 +276,7 @@ onUnmounted(() => {
275
276
class =" col-md-4 z-index-2 border-radius-xl mx-auto py-3 mt-2" >
276
277
<div class =" row-card" >
277
278
<div class =" card animate__animated animate__backInUp" :key =" index" >
278
- <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig'].url"
279
+ <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig']? .url ?? avatarDefault "
279
280
:title =" item.name" :description =" item.shortDescription" :href =" item.singleUrl"
280
281
@noticeClick =" detailsEditImage" :id =" item.id" />
281
282
<div class =" card-body text-center" >
@@ -290,7 +291,7 @@ onUnmounted(() => {
290
291
class =" col-md-4 z-index-2 border-radius-xl mx-auto py-3 mt-2" >
291
292
<div class =" row-card" >
292
293
<div class =" card animate__animated animate__backInUp" :key =" index" >
293
- <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig'].url"
294
+ <CenteredBlogCard style =" max-height : 700px ;" :image =" item['@files:avatar.avatarBig']? .url ?? avatarDefault "
294
295
:title =" item.name" :description =" item.shortDescription" :href =" item.singleUrl"
295
296
@noticeClick =" detailsEditImage" :id =" item.id" />
296
297
<div class =" card-body text-center" >
0 commit comments