mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 15:10:32 +00:00
微调白点
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
|
import { RouteMatcher } from 'next/dist/server/future/route-matchers/route-matcher';
|
||||||
|
import { useRouter } from 'next/router';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
const CursorDot = () => {
|
const CursorDot = () => {
|
||||||
|
const router = useRouter();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// 创建小白点元素
|
// 创建小白点元素
|
||||||
const dot = document.createElement('div');
|
const dot = document.createElement('div');
|
||||||
@@ -61,7 +64,7 @@ const CursorDot = () => {
|
|||||||
});
|
});
|
||||||
document.body.removeChild(dot);
|
document.body.removeChild(dot);
|
||||||
};
|
};
|
||||||
}, []);
|
}, [router]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<style jsx global>{`
|
<style jsx global>{`
|
||||||
|
|||||||
Reference in New Issue
Block a user