From aa63723b80ec26ab417694167edec1ab1f9fdf8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Fri, 19 Jun 2026 00:36:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor(AppRoot):=20=E7=A7=BB=E9=99=A4=20Route?= =?UTF-8?q?rProvider=20=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E5=AD=90=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 AppRoot 组件中移除 RouterProvider,直接将 children 作为子元素渲染,简化组件结构。 --- src/providers/AppRoot.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/providers/AppRoot.tsx b/src/providers/AppRoot.tsx index d46fcaa..c939a2c 100644 --- a/src/providers/AppRoot.tsx +++ b/src/providers/AppRoot.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { ThemeModeProvider } from './ThemeModeProvider'; -import { RouterProvider } from './RouterProvider'; import { Toaster } from '@/components/ui/sonner'; interface AppRootProps { @@ -11,7 +10,7 @@ export default function AppRoot({ children }: AppRootProps) { return ( - {children} + {children}