Commit 3411517a authored by Chunchi Che's avatar Chunchi Che

add duel route

parent f5654819
Pipeline #17764 passed with stages
in 3 minutes and 35 seconds
/*
* 决斗页面
*
* */
import React from "react";
export default function Duel() {
return <div>Duel</div>;
}
......@@ -5,14 +5,16 @@ import ThreeJs from "./ThreeJs";
import BabylonJs from "./BabylonJs";
import { Routes, Route } from "react-router-dom";
import Mora from "./Mora";
import Duel from "./Duel/main";
export default function () {
// FIXME: 这里Mora路由应该由每个房间指定一个路径
// FIXME: 这里Mora/Duel路由应该由每个房间指定一个路径
return (
<Routes>
<Route path="/" element={<JoinRoom />} />
<Route path="/:player/:passWd/:ip" element={<WaitRoom />} />
<Route path="/mora" element={<Mora />} />
<Route path="/duel" element={<Duel />} />
<Route path="/three" element={<ThreeJs />} />
<Route path="/babylon" element={<BabylonJs />} />
</Routes>
......
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