diff --git a/src/views/site/common/header.vue b/src/views/site/common/header.vue index c88cd4e..d4d898c 100644 --- a/src/views/site/common/header.vue +++ b/src/views/site/common/header.vue @@ -83,25 +83,10 @@ function toIndex(){ },1); } - function toTop(toId){ + function toTop(){ let topNum = 0; - if(toId){ - let toDom: any = document?.querySelector('#' + toId); - - console.log(`🚀 ------------------------------------------------🚀`); - console.log(`🚀 ~ file: header.vue:91 ~ toTop ~ toDom:`, toDom); - console.log(`🚀 ------------------------------------------------🚀`); - - topNum = toDom?.offsetTop??0; - - console.log(`🚀 --------------------------------------------------🚀`); - console.log(`🚀 ~ file: header.vue:97 ~ toTop ~ topNum:`, topNum); - console.log(`🚀 --------------------------------------------------🚀`); - - }else{ - topNum = document.body.scrollTop; - smoothScroll(topNum); - } + topNum = document.body.scrollTop; + smoothScroll(topNum); } function toDom(toId){ diff --git a/src/views/site/tingKeZuJi/index.vue b/src/views/site/tingKeZuJi/index.vue index 33abf2f..5f4552d 100644 --- a/src/views/site/tingKeZuJi/index.vue +++ b/src/views/site/tingKeZuJi/index.vue @@ -2,7 +2,7 @@