From b18e5964f6bf9dd3bfa77e758241fbe4416fa5bd Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 14 Sep 2026 21:37:55 +0800 Subject: [PATCH] style: reformat appRoutes.tsx with repo prettier config (#1899 #1900) --- apps/web/src/router/appRoutes.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/apps/web/src/router/appRoutes.tsx b/apps/web/src/router/appRoutes.tsx index 5ca446fbd..2aa771347 100644 --- a/apps/web/src/router/appRoutes.tsx +++ b/apps/web/src/router/appRoutes.tsx @@ -1,7 +1,7 @@ -import { Navigate, type RouteObject } from "react-router-dom"; -import MainLayout from "@/components/layout/MainLayout"; -import { ProtectedRoute } from "./ProtectedRoute"; -import { lazyRoute } from "./lazyRoute"; +import { Navigate, type RouteObject } from "react-router-dom" +import MainLayout from "@/components/layout/MainLayout" +import { ProtectedRoute } from "./ProtectedRoute" +import { lazyRoute } from "./lazyRoute" /** * 受保护的 /app 子路由 @@ -62,9 +62,7 @@ const appChildren: RouteObject[] = [ }, { path: "voice-materials", - lazy: lazyRoute( - () => import("@/pages/voice-materials/VoiceMaterialLibrary"), - ), + lazy: lazyRoute(() => import("@/pages/voice-materials/VoiceMaterialLibrary")), }, { path: "my-voices", @@ -127,7 +125,7 @@ const appChildren: RouteObject[] = [ }, ], }, -]; +] export const appRoutes: RouteObject = { path: "/app", @@ -137,4 +135,4 @@ export const appRoutes: RouteObject = { ), children: appChildren, -}; +}