NextJS: How to go to another page if query isn't met

后端 未结 0 1029
感情败类
感情败类 2020-12-24 05:49

Currently, I have this on one of my NextJS pages

  const router = useRouter();
  useEffect(() => {
   if (
     query.lat === undefined ||
     query.lng =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题