mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-20 15:09:40 +00:00
feat: 新增页面防复制功能
This commit is contained in:
@@ -29,6 +29,13 @@ export function GlobalContextProvider(props) {
|
||||
initTheme()
|
||||
}, [])
|
||||
|
||||
// 是否允许复制页面内容
|
||||
useEffect(() => {
|
||||
if (!BLOG.CAN_COPY) {
|
||||
document.getElementsByTagName('html')[0].classList.add('forbid-copy')
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
const handleStart = (url) => {
|
||||
NProgress.start()
|
||||
|
||||
Reference in New Issue
Block a user