refactor: routes and file

This commit is contained in:
张传龙
2022-09-04 12:18:47 +08:00
parent f1bc9edbac
commit bb171866b6
12 changed files with 43 additions and 244 deletions

39
src/views/demo/route.js Normal file
View File

@@ -0,0 +1,39 @@
const Layout = () => import('@/layout/index.vue')
export default {
name: 'Demo',
path: '/demo',
component: Layout,
redirect: '/demo/crud-table',
meta: {
title: '示例页面',
customIcon: 'logo',
role: ['admin'],
requireAuth: true,
order: 3,
},
children: [
{
name: 'CrudTable',
path: 'crud-table',
component: () => import('./table/index.vue'),
meta: {
title: '文章列表',
icon: 'mdi:table',
role: ['admin'],
requireAuth: true,
},
},
{
name: 'MDEditor',
path: 'md-editor',
component: () => import('./editor/md-editor.vue'),
meta: {
title: 'MD编辑器',
icon: 'icon-park:editor',
role: ['admin'],
requireAuth: true,
},
},
],
}