import BaseLayout from '../../layouts/BaseLayout.vue';

export default [
	{
		path: '/',
		component: BaseLayout,
		meta: { title: '首页' },
		children: [
			{
				path: '/index',
				component: () => import('../../views/Home/home.vue'),
				meta: { title: '首页', icon: "" },
			},
			{
				path: '/',
				component: () => import('../../views/Home/home.vue'),
				meta: { title: '首页', icon: "" },
			}
		]
	},
	{
		path: '/need',
		component: BaseLayout,
		meta: { title: '待办事项' },
		children: [
			{
				path: '/need/all',
				component: () => import('../../views/Need/all.vue'),
				meta: { title: '全部事项', icon: "" },
			},
			{
				path: '/need/unfinish',
				component: () => import('../../views/Need/unfinish.vue'),
				meta: { title: '未完事项', icon: "" },
			}
		]
	}, {
		path: '/team',
		component: BaseLayout,
		meta: { title: '协同路线' },
		children: [
			{
				path: '/team/all',
				component: () => import('../../views/Team/all.vue'),
				meta: { title: '全部路线', icon: "" },
			},
			{
				path: '/team/launch',
				component: () => import('../../views/Team/launch.vue'),
				meta: { title: '我发起的', icon: "" },
			},
			{
				path: '/team/join',
				component: () => import('../../views/Team/join.vue'),
				meta: { title: '我参与的', icon: "" },
			}
		]
	}, {
		path: '/order',
		component: BaseLayout,
		meta: { title: '清单管理' },
		children: [
			{
				path: '/order/material',
				component: () => import('../../views/Order/material.vue'),
				meta: { title: '物料清单', icon: "" },
			},
			{
				path: '/order/formula',
				component: () => import('../../views/Order/formula.vue'),
				meta: { title: '配方清单', icon: "" },
			},
			{
				path: '/order/package',
				component: () => import('../../views/Order/package.vue'),
				meta: { title: '包材清单', icon: "" },
			},
			{
				path: '/order/type',
				component: () => import('../../views/Order/type.vue'),
				meta: { title: '分类清单', icon: "" },
			}
		]
	},
	{
		path: '/system',
		component: BaseLayout,
		meta: { title: '系统设置' },
		children: [
			{
				path: '/system/user',
				component: () => import('../../views/System/user.vue'),
				meta: { title: '用户管理', icon: "" },
			},
			{
				path: '/system/factory',
				component: () => import('../../views/System/factory.vue'),
				meta: { title: '模式管理', icon: "" },
			},
			{
				path: '/system/role',
				component: () => import('../../views/System/role.vue'),
				meta: { title: '角色管理', icon: "" },
			},
			{
				path: '/system/config',
				component: () => import('../../views/System/config.vue'),
				meta: { title: '系统配置', icon: "" },
			},
			{
				path: '/system/log',
				component: () => import('../../views/System/log.vue'),
				meta: { title: '日志管理', icon: "" },
			}
		]
	}
]