11wqe1 7 months ago
parent
commit
efe3796d6f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/pages/components/worksDetail2.vue

+ 3 - 0
src/components/pages/components/worksDetail2.vue

@@ -4643,6 +4643,9 @@ export default {
         if (element) {
           element.scrollIntoView({
             behavior: 'smooth', block: "start", inline: "nearest"
+          },()=>{
+            let scrollBody = document.querySelector(".zyBoxC").parentElement
+            scrollBody.scrollTop = scrollBody.scrollTop - 30
           });
           setTimeout(() => {
             let scrollBody = document.querySelector(".zyBoxC").parentElement