57 lines
1.2 KiB
JavaScript
57 lines
1.2 KiB
JavaScript
const routes = [
|
|
{
|
|
path: '/',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [
|
|
{ path: '', component: () => import('pages/create/index.vue') }
|
|
]
|
|
},
|
|
// 登录
|
|
{
|
|
path: '/login',
|
|
children: [
|
|
{ path: '', component: () => import('pages/Login.vue') }
|
|
]
|
|
},
|
|
// 历史
|
|
{
|
|
path: '/history',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [
|
|
{ path: '', component: () => import('pages/history/index.vue') }
|
|
]
|
|
},
|
|
// AICG
|
|
{
|
|
path: '/aicg',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [
|
|
{ path: '', component: () => import('pages/aicg/index.vue') }
|
|
]
|
|
},
|
|
// 个人中心
|
|
{
|
|
path: '/mine',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [
|
|
{ path: '', component: () => import('pages/mine/index.vue') }
|
|
]
|
|
},
|
|
// 留言反馈
|
|
{
|
|
path: '/feedback',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [
|
|
{ path: '', component: () => import('pages/feedback/index.vue') }
|
|
]
|
|
},
|
|
// Always leave this as last one,
|
|
// but you can also remove it
|
|
{
|
|
path: '/:catchAll(.*)*',
|
|
component: () => import('pages/ErrorNotFound.vue')
|
|
}
|
|
]
|
|
|
|
export default routes
|