File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ onMounted(() => {
31
31
})
32
32
33
33
store .DOM .title = DOMTitle .value
34
- store .titleToggle ()
35
34
}
36
35
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
+ })
38
40
})
39
41
</script >
40
42
Original file line number Diff line number Diff line change @@ -53,11 +53,13 @@ const openFaucet = (faucet: Faucet) => {
53
53
}
54
54
55
55
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
+ })
61
63
})
62
64
</script >
63
65
You can’t perform that action at this time.
0 commit comments