import config from "@/config"

//系统路由
const routes = [
	{
		path: "/",
		name: "layout",
		component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
		redirect: config.DASHBOARD_URL || '/dashboard',
		children: []
	},
	{
		path: "/login",
		component: () => import(/* webpackChunkName: "login" */ '@/views/login'),
		meta: {
			title: "登录"
		}
	},
	{
		path:"/bind_wechat",
		component:()=>import(/* webpackChunkName: "bindWechat" */ '@/views/login/bindWechat'),
		meta:{
			title:'绑定微信'
		},
	},
	{
		path:"/bind_dingtalk",
		component:()=>import(/* webpackChunkName: "bindDingTalk" */ '@/views/login/bindDingTalk'),
		meta:{
			title:'绑定钉钉'
		}
	},
	{
		path: "/user_register",
		component: () => import(/* webpackChunkName: "userRegister" */ '@/views/login/userRegister'),
		meta: {
			title: "注册"
		}
	},
	{
		path: "/activate",
		component: () => import(/* webpackChunkName: "activate" */ '@/views/login/activate'),
		meta: {
			title: "邮箱激活"
		}
	},
	{
		path: "/reset_password",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/login/resetPassword'),
		meta: {
			title: "重置密码"
		}
	},
	{
		path: "/maintenance",
		component: () => import(/* webpackChunkName: "serveView" */ '@/views/maintenance'),
		meta: {
			title: "维保服务"
		},
		tokenShow:true
	},
]

export default routes;
