File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,17 @@ onMounted(() => {
9595
9696const minimum = 9
9797
98+ function getImageByIndex(index : number ) {
99+ if (index === 0 ) {
100+ return ' /slider-test-0.jpg'
101+ }
102+ if (index === 1 ) {
103+ return ' /slider-test-1.jpg'
104+ }
105+
106+ return ' '
107+ }
108+
98109const preparedPins = computed (() => {
99110 const filtered = pins .filter ((pin ) => pin .type !== ' empty' )
100111 const emptyCount = Math .max (0 , minimum - filtered .length )
@@ -106,7 +117,7 @@ const preparedPins = computed(() => {
106117 userId: null ,
107118 user: null ,
108119 text: null ,
109- mediaUrl: ' /slider-test.jpg ' ,
120+ mediaUrl: getImageByIndex ( i ) ,
110121 pageId: ' placeholder' ,
111122 }))
112123 return [... filtered , ... emptyPins ]
Original file line number Diff line number Diff line change 4343 size =" sm"
4444 :label =" c.name"
4545 class =" px-0 py-0 text-md font-semibold cursor-pointer"
46- :class =" { '! text-secondary': c.id === city?.id }"
46+ :class =" { 'text-secondary! ': c.id === city?.id }"
4747 />
4848 </div >
4949
File renamed without changes.
You can’t perform that action at this time.
0 commit comments