From 91f2138caaa25c6185efade02b3bf8b416767c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 1 Jun 2023 22:09:41 +0800 Subject: [PATCH] =?UTF-8?q?go(-1)=E4=BA=8B=E4=BB=B6=E5=9C=A8=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E6=B5=8F=E8=A7=88=E5=99=A8=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/project/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glcc/project/index.jsx b/src/glcc/project/index.jsx index 606030306..32f7965b3 100644 --- a/src/glcc/project/index.jsx +++ b/src/glcc/project/index.jsx @@ -23,7 +23,7 @@ function Project(propsF) { const {location, match:{params:{id}}, repoPublic, history} = propsF; const {pathname} = location; if(id==="2023" && !repoPublic){ - history.go(-1); + history.push('/glcc') } useEffect(()=>{ window.scrollTo(0, 0);