|
|
@@ -4,6 +4,7 @@ import My from "../pages/My";
|
|
|
import List from "../pages/List";
|
|
|
import Error from '../pages/Error';
|
|
|
import Layout from "../Layout";
|
|
|
+import Detail from "../pages/Detail";
|
|
|
const routes = [
|
|
|
{
|
|
|
path: '/',
|
|
|
@@ -25,6 +26,11 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ {
|
|
|
+ // listId 商品ID 动态参数
|
|
|
+ path: '/detail/:listId/:title?',
|
|
|
+ element: <Detail />
|
|
|
+ },
|
|
|
{
|
|
|
// 兜底路由
|
|
|
path: '*',
|