|
|
@@ -83,7 +83,7 @@ function A2main() {
|
|
|
useEffect(() => {
|
|
|
const sections = document.querySelectorAll('.section1, .section2, .section3, .section4, .section5')
|
|
|
sections.forEach((section, index) => {
|
|
|
- section.setAttribute('data-index', index.toString())
|
|
|
+ section.setAttribute('data-index', (index + 1).toString())
|
|
|
console.log(section)
|
|
|
})
|
|
|
}, [])
|