diff --git a/mock/module/user.ts b/mock/module/user.ts index dec678d..27c8bb0 100644 --- a/mock/module/user.ts +++ b/mock/module/user.ts @@ -107,6 +107,36 @@ const userRoutes = [ }, ], }, + { + name: 'list', + path: '/list', + redirect: '/list/commonList', + meta: { + title: '列表页', + requiresAuth: true, + icon: 'icon-park-outline:list-two', + }, + children: [ + { + name: 'list_commonList', + path: '/list/commonList', + meta: { + title: '常用列表', + requiresAuth: true, + icon: 'icon-park-outline:list-view', + }, + }, + { + name: 'list_cardList', + path: '/list/cardList', + meta: { + title: '卡片列表', + requiresAuth: true, + icon: 'icon-park-outline:view-grid-list', + }, + }, + ], + }, ]; export default [ diff --git a/src/layouts/BasicLayout/index.vue b/src/layouts/BasicLayout/index.vue index 03370a6..b0516be 100644 --- a/src/layouts/BasicLayout/index.vue +++ b/src/layouts/BasicLayout/index.vue @@ -59,4 +59,11 @@ import { const appStore = useAppStore(); - + diff --git a/src/views/list/cardList/index.vue b/src/views/list/cardList/index.vue new file mode 100644 index 0000000..dcae1a5 --- /dev/null +++ b/src/views/list/cardList/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/list/commonList/index.vue b/src/views/list/commonList/index.vue new file mode 100644 index 0000000..65f87cb --- /dev/null +++ b/src/views/list/commonList/index.vue @@ -0,0 +1,72 @@ + + + + +