Commit c3331a50 authored by Chunchi Che's avatar Chunchi Che

update router

parent c0f31e4d
Pipeline #23061 canceled with stages
in 9 minutes and 29 seconds
......@@ -25,7 +25,7 @@ export const Alert = () => {
afterClose={() => {
// 发送投降信号
sendSurrender();
navigate("/");
navigate("/match");
}}
/>
) : (
......
......@@ -57,6 +57,8 @@ export const ReplayModal: React.FC = () => {
useEffect(() => {
if (hasStart) {
setLoading(false);
localStore.open = false;
localStore.hasStart = false;
// 跳转
navigate(`/duel`);
}
......
......@@ -27,7 +27,7 @@ export const Component: React.FC = () => {
const navigate = useNavigate();
useEffect(() => {
// 人机对战跳转;
// 人机对战跳转
if (joined) {
navigate(`/waitroom`);
}
......
......@@ -297,7 +297,7 @@ const SideButtons: React.FC<{
// 重置stores
resetUniverse();
// 返回上一个路由
navigate("..");
navigate("/match");
}}
/>
<Button
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment