67 lines
1.8 KiB
TypeScript
67 lines
1.8 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
/** 静态路由:无需登录即可访问的页面 + 主布局骨架 + 404 */
|
|
export const staticRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/login',
|
|
name: 'login',
|
|
component: () => import('@/views/login/LoginView.vue'),
|
|
meta: { title: '登录' },
|
|
},
|
|
{
|
|
path: '/register',
|
|
name: 'register',
|
|
component: () => import('@/views/login/RegisterView.vue'),
|
|
meta: { title: '注册' },
|
|
},
|
|
{
|
|
path: '/forgot-password',
|
|
name: 'forgotPassword',
|
|
component: () => import('@/views/login/ForgotPassword.vue'),
|
|
meta: { title: '忘记密码' },
|
|
},
|
|
{
|
|
path: '/reset-password/:token',
|
|
name: 'resetPassword',
|
|
component: () => import('@/views/login/ResetPassword.vue'),
|
|
meta: { title: '重置密码' },
|
|
},
|
|
{
|
|
path: '/confirm/:token',
|
|
name: 'confirmEmail',
|
|
component: () => import('@/views/login/ConfirmEmail.vue'),
|
|
meta: { title: '邮箱确认' },
|
|
},
|
|
{
|
|
path: '/balance-migrate',
|
|
name: 'balanceMigrate',
|
|
component: () => import('@/views/login/BalanceMigrate.vue'),
|
|
meta: { title: '积分转移' },
|
|
},
|
|
{
|
|
path: '/cpdaily/authorize/:uuid',
|
|
name: 'cpDeviceAuthorize',
|
|
component: () => import('@/views/cpdaily/CpDeviceAuthorize.vue'),
|
|
meta: { title: '设备授权' },
|
|
},
|
|
{
|
|
path: '/',
|
|
name: 'layout',
|
|
component: () => import('@/components/layout/AppLayout.vue'),
|
|
children: [
|
|
{
|
|
path: 'cpdaily/task/edit/:id',
|
|
name: 'cpTaskEdit',
|
|
component: () => import('@/views/cpdaily/CpTaskForm.vue'),
|
|
meta: { title: '任务配置' },
|
|
},
|
|
{
|
|
path: 'cpdaily/task/log/:id',
|
|
name: 'cpTaskLog',
|
|
component: () => import('@/views/cpdaily/CpTaskLog.vue'),
|
|
meta: { title: '任务日志' },
|
|
},
|
|
],
|
|
},
|
|
]
|