This commit is contained in:
zhangkai
2024-06-13 15:11:41 +08:00
parent 2734110636
commit fb39b66431
78 changed files with 2868 additions and 2800 deletions

View File

@@ -11,6 +11,7 @@ import Report from "./pages/Report";
import SkillChatPage from "./pages/ChatAppPage";
import ChatShare from "./pages/ChatAppPage/chatShare";
import SkillAssisPage from "./pages/SkillPage/tabAssistant";
import EditAssistantPage from "./pages/SkillPage/editAssistant";
import SkillsPage from "./pages/SkillPage/tabSkills";
import SkillToolsPage from "./pages/SkillPage/tabTools";
import SkillPage from "./pages/SkillPage";
@@ -18,6 +19,7 @@ import SkillPage from "./pages/SkillPage";
import L2Edit from "./pages/SkillPage/l2Edit";
import SystemPage from "./pages/SystemPage";
import BuildLayout from "./layout/BuildLayout";
import Templates from "./pages/SkillPage/temps";
// react 与 react router dom版本不匹配
// const FileLibPage = lazy(() => import(/* webpackChunkName: "FileLibPage" */ "./pages/FileLibPage"));
@@ -47,6 +49,9 @@ const router = createBrowserRouter([
{ path: "", element: <Navigate to="assist" replace /> },
]
},
{ path: "build/skill", element: <L2Edit /> },
{ path: "build/skill/:id/:vid", element: <L2Edit /> },
{ path: "build/temps", element: <Templates /> },
{ path: "model", element: <ModelPage /> },
{ path: "sys", element: <SystemPage /> },
],
@@ -58,6 +63,12 @@ const router = createBrowserRouter([
{ path: "", element: <FlowPage /> }
]
},
{
path: "/assistant/:id/",
children: [
{ path: "", element: <EditAssistantPage /> }
]
},
// 独立会话页
{ path: "/chat", element: <SkillChatPage /> },
{ path: "/chat/:id/", element: <ChatShare /> },