import config from "@/config"


var dashboard = "/";

//系统路由
const routes = [
	{
		name: "layout",
		path: "/",
		component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
		redirect: config.DASHBOARD_URL || dashboard,
		children: []
	},
	{
		path: "/login",
		component: () => import(/* webpackChunkName: "login" */ '@/views/login'),
		meta: {
			title: "登录"
		}
	},
	{
		path: "/forget",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/login/forget'),
		meta: {
			title: "重置密码"
		}
	},
	{
		path: "/result",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/login/result'),
		meta: {
			title: "检测报告"
		}
	}
]

export default routes;
