add
This commit is contained in:
parent
d1d916afc9
commit
24e936d672
|
|
@ -1,17 +1,5 @@
|
|||
import {
|
||||
createBrowserRouter,
|
||||
IndexRouteObject,
|
||||
Link,
|
||||
NonIndexRouteObject,
|
||||
} from "react-router-dom";
|
||||
import { RolePerms } from "@nice/common";
|
||||
import { createBrowserRouter, Link } from "react-router-dom";
|
||||
import ErrorPage from "../app/error";
|
||||
import DepartmentAdminPage from "../app/admin/department/page";
|
||||
import TermAdminPage from "../app/admin/term/page";
|
||||
import StaffAdminPage from "../app/admin/staff/page";
|
||||
import RoleAdminPage from "../app/admin/role/page";
|
||||
import WithAuth from "../components/utils/with-auth";
|
||||
import BaseSettingPage from "../app/admin/base-setting/page";
|
||||
import { MainLayout } from "../components/layout/main/MainLayout";
|
||||
import WriteLetterPage from "../app/main/letter/write/page";
|
||||
import LetterListPage from "../app/main/letter/list/page";
|
||||
|
|
@ -20,7 +8,6 @@ import HelpPage from "../app/main/help/page";
|
|||
import AuthPage from "../app/auth/page";
|
||||
import LetterEditorPage from "../app/main/letter/editor/page";
|
||||
import LetterDetailPage from "../app/main/letter/detail/page";
|
||||
import AdminLayout from "../components/layout/admin/AdminLayout";
|
||||
import { CustomRouteObject } from "./types";
|
||||
import { adminRoute } from "./admin-route";
|
||||
import InboxPage from "../app/main/letter/inbox/page";
|
||||
|
|
@ -39,6 +26,10 @@ export const routes: CustomRouteObject[] = [
|
|||
{
|
||||
element: <MainLayout></MainLayout>,
|
||||
children: [
|
||||
{
|
||||
index: true,
|
||||
element: <IndexPage></IndexPage>,
|
||||
},
|
||||
{
|
||||
path: "inbox",
|
||||
element: <InboxPage></InboxPage>,
|
||||
|
|
@ -47,10 +38,7 @@ export const routes: CustomRouteObject[] = [
|
|||
path: "outbox",
|
||||
element: <OutboxPage></OutboxPage>,
|
||||
},
|
||||
{
|
||||
index: true,
|
||||
element: <IndexPage></IndexPage>,
|
||||
},
|
||||
|
||||
{
|
||||
path: "letter-list",
|
||||
element: <LetterListPage></LetterListPage>,
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<script>
|
||||
window.env = {
|
||||
VITE_APP_SERVER_IP: "$VITE_APP_SERVER_IP",
|
||||
VITE_APP_SERVER_PORT: "$VITE_APP_SERVER_PORT",
|
||||
VITE_APP_UPLOAD_PORT: "$VITE_APP_UPLOAD_PORT",
|
||||
VITE_APP_APP_NAME: "$VITE_APP_APP_NAME",
|
||||
VITE_APP_VERSION: "$VITE_APP_VERSION",
|
||||
VITE_APP_SERVER_IP: "",
|
||||
VITE_APP_SERVER_PORT: "",
|
||||
VITE_APP_UPLOAD_PORT: "",
|
||||
VITE_APP_APP_NAME: "",
|
||||
VITE_APP_VERSION: "",
|
||||
};
|
||||
</script>
|
||||
<title>信箱</title>
|
||||
|
|
|
|||
Loading…
Reference in New Issue