将 import { useRouter } from 'next/router'; 改为 import Router from "next/router";
使用: Router.push('/');
原来使用 import { useRouter } from 'next/router'; 会导致报错如下
标签:hooks,next,router,import,useRouter,Router From: https://www.cnblogs.com/tlfe/p/17774094.html