Skip to content

Commit

Permalink
Merge pull request GeekQiaQia#43 from GeekQiaQia/feature/project-board
Browse files Browse the repository at this point in the history
feat: 路由循序调整
  • Loading branch information
Gavin-yh authored Oct 21, 2021
2 parents 297304c + 54f3321 commit 79c36fb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/mock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Mock.mock('/api/auth/user/register','post',() => ({
return {
status: 0,
data:{
authedRoutes:['/dashboard','/guide', '/copy','/zip','/role','/menu','/excel','/table','/form','/qrcode','/dragable','/editor','/upload','/cropper','/personal', '/projectboard']
authedRoutes:['/dashboard','/guide', '/copy','/zip','/role','/menu', '/projectboard', '/excel','/table','/form','/qrcode','/dragable','/editor','/upload','/cropper','/personal']
},
success: true,
message:'成功'
Expand Down
52 changes: 26 additions & 26 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,32 @@ export const asyncRoutes:Array<RouteRecordRaw> = [
},
],
},
{
path: '/projectboard',
component: layout,
redirect: '/projectboard/manage',
meta: {
title:{
'/zh-CN': '项目看板',
'/en-US': 'Project Board'
},
icon: 'el-icon-folder-opened',
},
children: [
{
path: '/projectboard/manage',
name: 'roleManage',
component: () => import(/* webpackChunkName: "projectBoard" */ '@/views/projectBoard/index.vue'),
meta: {
title:{
'/zh-CN': '项目看板',
'/en-US': 'Project Board'
},
icon: 'el-icon-folder-opened',
},
},
]
},
{
path: '/personal',
component: layout,
Expand Down Expand Up @@ -571,32 +597,6 @@ export const asyncRoutes:Array<RouteRecordRaw> = [
},
],
},
{
path: '/projectboard',
component: layout,
redirect: '/projectboard/manage',
meta: {
title:{
'/zh-CN': '项目看板',
'/en-US': 'Project Board'
},
icon: 'el-icon-folder-opened',
},
children: [
{
path: '/projectboard/manage',
name: 'roleManage',
component: () => import(/* webpackChunkName: "projectBoard" */ '@/views/projectBoard/index.vue'),
meta: {
title:{
'/zh-CN': '项目看板',
'/en-US': 'Project Board'
},
icon: 'el-icon-folder-opened',
},
},
]
},
];

const router = createRouter({
Expand Down

0 comments on commit 79c36fb

Please sign in to comment.