Browse Source

react-router

e 9 months ago
parent
commit
12df763ec9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      react/react高阶/project3/src/router/index.js

+ 1 - 1
react/react高阶/project3/src/router/index.js

@@ -37,7 +37,7 @@ const routes = [
       {
         path: "my",
         element: (
-            <Suspense>
+            <Suspense fallback={<h3>Loading....</h3>}>
                 <My/>
             </Suspense>
         ),