This commit is contained in:
tangly1024
2023-06-04 14:11:16 +08:00
parent 0a14f09663
commit eb22dee628

View File

@@ -1,7 +1,7 @@
import BLOG from '@/blog.config'
import dynamic from 'next/dynamic'
import Tabs from '@/components/Tabs'
import React from 'react'
import { useEffect } from 'react'
import { useRouter } from 'next/router'
const WalineComponent = dynamic(
@@ -57,7 +57,7 @@ const ValineComponent = dynamic(() => import('@/components/ValineComponent'), {
const Comment = ({ frontMatter }) => {
const router = useRouter()
React.useEffect(() => {
useEffect(() => {
// 跳转到评论区
setTimeout(() => {
if (window.location.href.indexOf('target=comment') > -1) {