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