From 3ea3fb99703048e6af9aad3e767a8d7764d82560 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 8 Mar 2022 14:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E4=B8=BB=E9=A1=B5=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Hexo/components/InfoCard.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/Hexo/components/InfoCard.js b/themes/Hexo/components/InfoCard.js index 28302d0d..81e7b6ee 100644 --- a/themes/Hexo/components/InfoCard.js +++ b/themes/Hexo/components/InfoCard.js @@ -1,15 +1,16 @@ import BLOG from '@/blog.config' import Image from 'next/image' -import { Router } from 'next/router' +import { useRouter } from 'next/router' import Card from './Card' import SocialButton from './SocialButton' import MenuButtonGroup from './MenuButtonGroup' export function InfoCard (props) { + const router = useRouter() return
{ - Router.push('/') + router.push('/') }} >