Skip to content

Commit

Permalink
feat: change router to hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
RasenGUY committed Jan 28, 2024
1 parent a327ed5 commit 4152b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/containers/Router/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
createBrowserRouter,
createHashRouter
} from "react-router-dom";
import Layout from "../Layout";
import PlayPage from '../PlayPage';
Expand All @@ -19,7 +19,7 @@ declare global {
}
}

const router = createBrowserRouter([
const router = createHashRouter([
{
path: '/',
element: <GlobalModal><Layout /></GlobalModal>,
Expand Down Expand Up @@ -58,7 +58,7 @@ const router = createBrowserRouter([
},
])

export const mobileRouter = createBrowserRouter([
export const mobileRouter = createHashRouter([
{
path: '/',
element: <Layout />,
Expand Down

0 comments on commit 4152b7b

Please sign in to comment.