Skip to content

Commit 091a7e5

Browse files
authored
Merge pull request #3342 from tangly1024/feat/theme-proxio
微调白点
2 parents ef91778 + 24d9d1c commit 091a7e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/CursorDot.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import { RouteMatcher } from 'next/dist/server/future/route-matchers/route-matcher';
2+
import { useRouter } from 'next/router';
13
import { useEffect } from 'react';
24

35
const CursorDot = () => {
6+
const router = useRouter();
47
useEffect(() => {
58
// 创建小白点元素
69
const dot = document.createElement('div');
@@ -61,7 +64,7 @@ const CursorDot = () => {
6164
});
6265
document.body.removeChild(dot);
6366
};
64-
}, []);
67+
}, [router]);
6568

6669
return (
6770
<style jsx global>{`

0 commit comments

Comments
 (0)