Skip to content

Commit 96a94c4

Browse files
committed
fix: first load
1 parent b97aaa4 commit 96a94c4

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/App.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ onMounted(() => {
3131
})
3232
3333
store.DOM.title = DOMTitle.value
34-
store.titleToggle()
3534
}
3635
37-
gsap.to(DOMSiteloader.value, { autoAlpha: 0, duration: 0.4 })
36+
window.addEventListener('load', () => {
37+
gsap.to(DOMSiteloader.value, { autoAlpha: 0, duration: 0.4 })
38+
store.titleToggle()
39+
})
3840
})
3941
</script>
4042

src/components/faucet/FaucetsList.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ const openFaucet = (faucet: Faucet) => {
5353
}
5454
5555
onMounted(() => {
56-
// TODO: To custom with async data
57-
if (cards.value && cards.value?.length > 0) {
58-
store.DOM.cards = cards.value
59-
store.cardDisplay()
60-
}
56+
window.addEventListener('load', () => {
57+
// TODO: To custom with async data
58+
if (cards.value && cards.value?.length > 0) {
59+
store.DOM.cards = cards.value
60+
store.cardDisplay()
61+
}
62+
})
6163
})
6264
</script>
6365

0 commit comments

Comments
 (0)