diff --git a/src/routes.tsx b/src/routes.tsx index 68d49d9..9c51b39 100644 --- a/src/routes.tsx +++ b/src/routes.tsx @@ -20,7 +20,7 @@ import { Outlet, redirect, RouterProvider, - createHashHistory, + // createHashHistory, } from '@tanstack/react-router' // import { TanStackRouterDevtools } from '@tanstack/router-devtools' import { memo, useEffect, useRef } from 'react' @@ -302,11 +302,11 @@ export const RootProvider = memo((props: { context: Partial }) => generateDynamicRoutes(menuData ?? [], layoutAuthRoute) - const hashHistory = createHashHistory() - + // const hashHistory = createHashHistory() + const router = createRouter({ routeTree, - history: hashHistory, + // history: hashHistory, context: { queryClient, menuData: [] }, defaultPreload: 'intent', defaultPendingComponent: () =>