From 7518281f5b6f35f43a3a430a8b7a05ff059d7c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=87=91?= Date: Tue, 4 Jun 2024 13:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9Ahash=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: () =>