From b581110d19cbf8175cda843e589972c879269b55 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 8 Jul 2023 11:38:38 +0800 Subject: [PATCH] gitbook useRouter --- themes/gitbook/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js index 0878dc0c..bb75e59b 100644 --- a/themes/gitbook/index.js +++ b/themes/gitbook/index.js @@ -1,3 +1,5 @@ +'use client' + import CONFIG from './config' import { useRouter } from 'next/router' import { useEffect, useState, createContext, useContext } from 'react'