|
|
@@ -3,6 +3,8 @@ import Home from "../pages/Home";
|
|
|
import List from "../pages/List";
|
|
|
import My from "../pages/My";
|
|
|
import Layout from "../layout";
|
|
|
+import Error from "../pages/Error";
|
|
|
+import Detail from "../pages/Detail";
|
|
|
const routes = [
|
|
|
{
|
|
|
path: '/',
|
|
|
@@ -21,6 +23,12 @@ const routes = [
|
|
|
element: <My></My>
|
|
|
},
|
|
|
]
|
|
|
+ }, {
|
|
|
+ path: '*',
|
|
|
+ element:<Error></Error>
|
|
|
+ },{
|
|
|
+ path:'/detail/:ids',
|
|
|
+ element: <Detail></Detail>
|
|
|
}
|
|
|
];
|
|
|
|