mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-16 22:29:24 +08:00
Fixed base url
This commit is contained in:
parent
105b0ec101
commit
8359142936
1 changed files with 82 additions and 79 deletions
161
src/App.tsx
161
src/App.tsx
|
@ -17,85 +17,88 @@ import Register from "./Routes/Register/Register";
|
|||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: (
|
||||
<Container>
|
||||
<Dashboard />
|
||||
</Container>
|
||||
),
|
||||
errorElement: (
|
||||
<Container>
|
||||
<Error />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Products",
|
||||
element: (
|
||||
<Container>
|
||||
<Products />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Inventory",
|
||||
element: (
|
||||
<Container>
|
||||
<Inventory />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Logs",
|
||||
element: (
|
||||
<Container>
|
||||
<Logs />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Login",
|
||||
element: (
|
||||
<Container>
|
||||
<Login />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Product/:id",
|
||||
element: (
|
||||
<Container>
|
||||
<Product />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Activation/:uid/:token",
|
||||
element: (
|
||||
<Container>
|
||||
<Activation />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/NewProduct",
|
||||
element: (
|
||||
<Container>
|
||||
<NewProduct />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Register",
|
||||
element: (
|
||||
<Container>
|
||||
<Register />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
]);
|
||||
const router = createBrowserRouter(
|
||||
[
|
||||
{
|
||||
path: "/",
|
||||
element: (
|
||||
<Container>
|
||||
<Dashboard />
|
||||
</Container>
|
||||
),
|
||||
errorElement: (
|
||||
<Container>
|
||||
<Error />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Products",
|
||||
element: (
|
||||
<Container>
|
||||
<Products />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Inventory",
|
||||
element: (
|
||||
<Container>
|
||||
<Inventory />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Logs",
|
||||
element: (
|
||||
<Container>
|
||||
<Logs />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Login",
|
||||
element: (
|
||||
<Container>
|
||||
<Login />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Product/:id",
|
||||
element: (
|
||||
<Container>
|
||||
<Product />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Activation/:uid/:token",
|
||||
element: (
|
||||
<Container>
|
||||
<Activation />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/NewProduct",
|
||||
element: (
|
||||
<Container>
|
||||
<NewProduct />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "/Register",
|
||||
element: (
|
||||
<Container>
|
||||
<Register />
|
||||
</Container>
|
||||
),
|
||||
},
|
||||
],
|
||||
{ basename: "Ivy" }
|
||||
);
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue