perf: reduce js size

This commit is contained in:
ReaJason
2025-08-13 23:53:40 +08:00
parent 288b6df8e4
commit fbdc58390a
12 changed files with 45 additions and 25 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { createBrowserRouter } from "react-router-dom";
import { createHashRouter } from "react-router-dom";
import RootLayout from "@/components/layouts/root-layout";
import { env } from "@/config";
import MemShellPage from "@/pages/memshell";
@@ -42,7 +42,7 @@ const parseUrlParams = (searchParams: URLSearchParams): Partial<FormSchema> => {
return result;
};
export const router = createBrowserRouter(
export const router = createHashRouter(
[
{
path: "/",