fix: frontend routes

This commit is contained in:
tao.chen
2026-08-07 12:47:37 +08:00
parent d7934a42ab
commit 6f574073e3
12 changed files with 206 additions and 167 deletions
@@ -0,0 +1,10 @@
import { Navigate } from "react-router";
/**
* 根路径 "/" 命中时直接跳到 /workbench。
* 抽出独立文件是为了不和 route("workbench", ...) 撞 route id
* (React Router v8 基于文件路径生成 id, 同一文件不能被两个路由引用)。
*/
export default function RootIndex() {
return <Navigate to="/workbench" replace />;
}