mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +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';
|
||||
|
||||
const CursorDot = () => {
|
||||
const router = useRouter();
|
||||
useEffect(() => {
|
||||
// 创建小白点元素
|
||||
const dot = document.createElement('div');
|
||||
@@ -61,7 +64,7 @@ const CursorDot = () => {
|
||||
});
|
||||
document.body.removeChild(dot);
|
||||
};
|
||||
}, []);
|
||||
}, [router]);
|
||||
|
||||
return (
|
||||
<style jsx global>{`
|
||||
|
||||
Reference in New Issue
Block a user