Skip to content

Commit

Permalink
fix: banner navigation onclick
Browse files Browse the repository at this point in the history
  • Loading branch information
icebergtsn committed Dec 17, 2024
1 parent 92dc0de commit 8d6e35d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/src/components/base/BtBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@
v-if="size > 1"
class="cursor-pointer banner-navigation row justify-start items-center"
>
<template v-for="item in size" :key="item">
<template v-for="(item, index) in size" :key="item">
<div
:class="
item - 1 === currentSlide
? 'navigation-active'
: 'navigation-normal'
index === currentSlide ? 'navigation-active' : 'navigation-normal'
"
@click="changeActive(item)"
@click="changeActive(index)"
/>
</template>
</div>
Expand Down

0 comments on commit 8d6e35d

Please sign in to comment.