소스 검색

修改banner 没容器bug

zhejiushizhuce 2 년 전
부모
커밋
3b612cb121
1개의 변경된 파일과 7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/layout/Navbar/index.jsx

+ 7 - 0
src/layout/Navbar/index.jsx

@@ -338,6 +338,13 @@ const PageHeader = () => {
                 banner.element.classList.add(styles.install_banner);
                 banner.element.classList.add(styles.install_banner);
             }
             }
         }
         }
+        banner.init = async function() {
+            window.progressier.utils.styling(banner.styling, banner.className);
+            let installBanner=document.querySelector("#installBanner");
+            if (installBanner==null){return}
+            banner.make();
+            banner.render()
+        }
         window.install_banner=banner;
         window.install_banner=banner;
         return banner;
         return banner;
     }
     }