mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: add memo detail page
This commit is contained in:
@ -3,6 +3,7 @@ import { userService } from "../services";
|
||||
import Auth from "../pages/Auth";
|
||||
import Explore from "../pages/Explore";
|
||||
import Home from "../pages/Home";
|
||||
import MemoDetail from "../pages/MemoDetail";
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
@ -42,6 +43,17 @@ const router = createBrowserRouter([
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/m/:memoId",
|
||||
element: <MemoDetail />,
|
||||
loader: async () => {
|
||||
try {
|
||||
await userService.initialState();
|
||||
} catch (error) {
|
||||
// do nth
|
||||
}
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
export default router;
|
||||
|
Reference in New Issue
Block a user