提交 736027cf authored 作者: 王鹏飞's avatar 王鹏飞

refactor(admin): migrate account module

上级 ea8b5f3c
export { changePass, changeInfo, getUserInfo } from "@/layout/request";
import { lazy } from "react";
import { Navigate, useRoutes } from "react-router";
import ModuleBoundary from "@/app/ModuleBoundary";
const UserInfo = lazy(() => import("@/pages/user-module/userInfo"));
import AccountView from "./views/AccountView";
export default function AccountRoutes() {
const routes = useRoutes([
{ index: true, Component: UserInfo },
{ index: true, Component: AccountView },
{ path: "*", element: <Navigate to="/" /> },
]);
......
export { default } from "@/pages/user-module/userInfo";
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论