update
This commit is contained in:
@@ -4,6 +4,8 @@ const generateRouter = (routes) => {
|
||||
return routes.map(v => ({
|
||||
path: v.path,
|
||||
name: v.name,
|
||||
title: v.title,
|
||||
meta: v.meta,
|
||||
component: routesMap[v.component],
|
||||
children: v.children && v.children.length > 0 && [
|
||||
{path: '', redirect: `/home/${v.name}/${v.children[0].name}`},
|
||||
|
||||
@@ -2,6 +2,8 @@ const routesMap = {
|
||||
'task-center': () => import('../pages/merchant/pages/task-center/index.vue'),
|
||||
'reward-mission': () => import('../pages/merchant/pages/task-center/reward-mission.vue'),
|
||||
'appointed-task': () => import('../pages/merchant/pages/task-center/appointed-task.vue'),
|
||||
'new-task': () => import('../pages/merchant/pages/task-center/new-task.vue'),
|
||||
|
||||
'communication-center': () => import('../pages/merchant/pages/communication-center/index.vue'),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user