feat: add workspace setting section

This commit is contained in:
Steven
2023-06-23 22:46:35 +08:00
parent 61568840d3
commit afbf935a71
8 changed files with 101 additions and 6 deletions

View File

@ -4,7 +4,7 @@ import { userService } from "../services";
import Root from "../layouts/Root";
import Auth from "../pages/Auth";
import Home from "../pages/Home";
import Account from "../pages/Account";
import Setting from "../pages/Setting";
const router = createBrowserRouter([
{
@ -33,8 +33,8 @@ const router = createBrowserRouter([
},
},
{
path: "/account",
element: <Account />,
path: "/setting",
element: <Setting />,
loader: async () => {
try {
await userService.initialState();