Merge pull request #3342 from tangly1024/feat/theme-proxio

微调白点
This commit is contained in:
tangly1024
2025-04-13 14:45:34 +08:00
committed by GitHub

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';
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>{`