微调白点

This commit is contained in:
tangly1024
2025-04-13 14:43:27 +08:00
parent 1527c5c499
commit 24d9d1cfad

View File

@@ -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>{`