fix: 修复控制台的一些警告问题

Former-commit-id: 3fcbd5494858f5af98c64ad6ab8294a7772e69e0
This commit is contained in:
郝先瑞
2022-05-26 00:50:23 +08:00
parent 7669dc66ed
commit fd742634a4
6 changed files with 14 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ watch(show, value => {
});
function addEventClick() {
window.addEventListener('click', closeSidebar);
window.addEventListener('click', closeSidebar, {passive:true});
}
function closeSidebar(evt: any) {