2022-12-24 11:50:11 +08:00
|
|
|
import {createBrowserRouter, redirect} from "react-router-dom";
|
2022-12-23 23:00:44 +08:00
|
|
|
import LoginView from "../pages/Login/LoginView";
|
|
|
|
import HomeView from "../pages/HomeView";
|
|
|
|
|
|
|
|
const router = createBrowserRouter([
|
|
|
|
{
|
|
|
|
path: "/login",
|
|
|
|
element: <LoginView/>,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
element: <HomeView/>,
|
|
|
|
},
|
|
|
|
]);
|
2022-12-24 11:50:11 +08:00
|
|
|
|
2022-12-23 23:00:44 +08:00
|
|
|
export default router
|