MaiXinRong 2 년 전
부모
커밋
7133b65e26
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/public/js/global.js

+ 1 - 1
app/public/js/global.js

@@ -2,7 +2,7 @@
 /*全局自适应高度*/
 function autoFlashHeight(){
     const select = $(".scrollbar-auto .active");
-    $(".scrollbar-auto")[0].scrollTop = select[0].offsetTop;
+    if (select.length > 0) $(".scrollbar-auto")[0].scrollTop = select[0].offsetTop;
     function getObjHeight(select) {
         return select.length > 0 ? select.height() : 0;
     }