This commit is contained in:
2025-03-14 19:03:13 +08:00
parent 9ffe64dd44
commit 86671de035
22 changed files with 923 additions and 83 deletions

View File

@@ -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}`},

View File

@@ -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'),
};