diff --git a/src/routes/index.jsx b/src/routes/index.jsx
index 994233b..e085801 100644
--- a/src/routes/index.jsx
+++ b/src/routes/index.jsx
@@ -31,6 +31,7 @@
       <Route path="/login" element={<LoginPage />} />
       <Route path="/register" element={<RegisterPage />} />
       <Route path="/unauthorized" element={<UnauthorizedPage />} />
+      <Route path="*" element={<NotFoundPage />} />
 
       {/* 受保护的路由 (需要登录) */}
       <Route 
@@ -122,9 +123,6 @@
           </ProtectedRoute>
         }
       />
-
-      {/* 404 Not Found 路由 */}
-      <Route path="*" element={<MainLayout><NotFoundPage /></MainLayout>} /> 
     </Routes>
   );
 };
