Commit f431eb46 by chenwq1

fix: 报错修复

1 parent 1e9fd802
Pipeline #173 for f431eb46 failed in 0 seconds
......@@ -269,7 +269,7 @@ function handleScroll() {
let active = 0;
for (let i = sectionRefs.value.length - 1; i >= 0; i--) {
const el = sectionRefs.value[i];
if (el && sectionOffsetTop(el, scrollEl) <= threshold) {
if (el && sectionOffsetTop(el, sc) <= threshold) {
active = i;
break;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!