相册图片点击不跳转

This commit is contained in:
tangly
2022-11-13 20:42:35 +08:00
parent 1eb2350de4
commit 12babbdbca

View File

@@ -92,6 +92,12 @@ const NotionPage = ({ post }) => {
(zoomRef.current).attach(imgList[i])
}
}
// 相册图片不允许点击
const cards = document.getElementsByClassName('notion-collection-card')
for (const e of cards) {
e.removeAttribute('href')
}
}
}, 800)