ai-ground-quasar/src/router/routes.js

57 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-05-23 02:20:16 +00:00
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