import config from '@/config'

/**
 * 基础路由（不需要登录）
 */
const systemRoutes = [
	{
		path: '/login',
		name: 'Login',
		component: () => import('../pages/login/index.vue'),
		meta: {
			title: 'login',
			hidden: true,
		},
	},
	{
		path: '/register',
		name: 'Register',
		component: () => import('../pages/login/userRegister.vue'),
		meta: {
			title: 'register',
			hidden: true,
		},
	},
	{
		path: '/reset-password',
		name: 'ResetPassword',
		component: () => import('../pages/login/resetPassword.vue'),
		meta: {
			title: 'resetPassword',
			hidden: true,
		},
	},
	{
		path: '/',
		name: 'Layout',
		component: () => import('@/layouts/index.vue'),
		redirect: config.DASHBOARD_URL,
		children: [],
	},
]

export default systemRoutes
