Skip to content

Commit

Permalink
fix(page/index): fix sponsor render issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rockleona committed Apr 27, 2024
1 parent 2ec48eb commit 7d1c592
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
</template>

<script>
// import { mapState } from 'vuex'
import { mapState } from 'vuex'
import i18n from '@/i18n/index.i18n'
import { landingButtonConfig } from '@/configs/pageLanding'
import I18nPageWrapper from '@/components/core/i18n/PageWrapper'
Expand Down Expand Up @@ -161,9 +161,8 @@ export default {
selectedSponsor: {},
}
},
fetchOnServer: false,
computed: {
// ...mapState(['sponsorsData']),
...mapState(['sponsorsData']),
isBulleted() {
if (process.client) {
const width = window.innerWidth
Expand All @@ -186,6 +185,9 @@ export default {
return this.$store.state.configs.showIndexSponsorSection
},
},
created() {
this.$store.dispatch('$getSponsorsData')
},
methods: {
showModal(sponsor) {
this.isOpened = true
Expand Down

0 comments on commit 7d1c592

Please sign in to comment.