diff --git a/components/Comment.js b/components/Comment.js index 58acae07..ba0d4256 100644 --- a/components/Comment.js +++ b/components/Comment.js @@ -97,7 +97,7 @@ const Comment = ({ frontMatter, className }) => { observer.unobserve(commentRef.current) } } - }, []) + }, [frontMatter]) // 当连接中有特殊参数时跳转到评论区 if (