Merge remote-tracking branch 'origin/master'
# Conflicts: # src/router/index.js
This commit is contained in:
commit
09dd1d0d87
@ -29,7 +29,7 @@ function getItem(label, key, icon, children, type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const items = reactive([
|
const items = reactive([
|
||||||
getItem('首页', 'sub1'),
|
getItem('首页', '0'),
|
||||||
getItem('系统管理', 'sub1', () => h(MailOutlined), [
|
getItem('系统管理', 'sub1', () => h(MailOutlined), [
|
||||||
getItem('用户管理', '1'),
|
getItem('用户管理', '1'),
|
||||||
getItem('角色管理', '2'),
|
getItem('角色管理', '2'),
|
||||||
@ -39,16 +39,16 @@ const items = reactive([
|
|||||||
getItem('消息管理', '6'),
|
getItem('消息管理', '6'),
|
||||||
], 'submenu'),
|
], 'submenu'),
|
||||||
getItem('首页管理', 'sub2', () => h(AppstoreOutlined), [
|
getItem('首页管理', 'sub2', () => h(AppstoreOutlined), [
|
||||||
getItem('轮播图管理', '5'),
|
getItem('轮播图管理', '7'),
|
||||||
getItem('团队简介', '6'),
|
getItem('团队简介', '8'),
|
||||||
getItem('项目推荐', '7'),
|
getItem('项目推荐', '9'),
|
||||||
getItem('新闻展示', '8'),
|
getItem('新闻展示', '10'),
|
||||||
getItem('用户推荐', '9'),
|
getItem('用户推荐', '11'),
|
||||||
], 'submenu'),
|
], 'submenu'),
|
||||||
getItem('信息管理', 'sub4', () => h(SettingOutlined), [
|
getItem('信息管理', 'sub4', () => h(SettingOutlined), [
|
||||||
getItem('项目信息管理', '9'),
|
getItem('项目信息管理', '12'),
|
||||||
getItem('团队信息管理', '10'),
|
getItem('团队信息管理', '13'),
|
||||||
getItem('新闻信息管理', '11'),
|
getItem('新闻信息管理', '14'),
|
||||||
], 'submenu'),
|
], 'submenu'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -68,17 +68,54 @@ const onOpenChange = (openKeys) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const HandleClick = (e) => {
|
const HandleClick = (e) => {
|
||||||
console.log("点击成功");
|
// console.log("点击成功");
|
||||||
|
|
||||||
const key = e.key;
|
const key = e.key;
|
||||||
console.log(e.key);
|
console.log(e.key);
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
case '0':
|
||||||
|
router.push('/Manager/Main'); // 导航到用户管理界面的路由
|
||||||
|
break;
|
||||||
case '1':
|
case '1':
|
||||||
router.push('/Manager/User'); // 导航到用户管理界面的路由
|
router.push('/Manager/User'); // 导航到用户管理界面的路由
|
||||||
break;
|
break;
|
||||||
case '2':
|
case '2':
|
||||||
|
router.push('/Manager/Role');
|
||||||
break;
|
break;
|
||||||
case '3':
|
case '3':
|
||||||
|
router.push('/Manager/Authority');
|
||||||
|
break;
|
||||||
|
case '4':
|
||||||
|
router.push('/Manager/Log');
|
||||||
|
break;
|
||||||
|
case '5':
|
||||||
|
router.push('/Manager/Daily');
|
||||||
|
break;
|
||||||
|
case '6':
|
||||||
|
router.push('/Manager/Message');
|
||||||
|
break;
|
||||||
|
case '7':
|
||||||
|
router.push('/Manager/Carousel');
|
||||||
|
break;
|
||||||
|
case '8':
|
||||||
|
router.push('/Manager/TeamProfile');
|
||||||
|
break;
|
||||||
|
case '9':
|
||||||
|
router.push('/Manager/ProjectRecommend');
|
||||||
|
break;
|
||||||
|
case '10':
|
||||||
|
router.push('/Manager/NewsDisplay');
|
||||||
|
break;
|
||||||
|
case '11':
|
||||||
|
router.push('/Manager/UserRecommend');
|
||||||
|
break;
|
||||||
|
case '12':
|
||||||
|
router.push('/Manager/ProjectInformation');
|
||||||
|
break;
|
||||||
|
case '13':
|
||||||
|
router.push('/Manager/TeamInformation');
|
||||||
|
break;
|
||||||
|
case '14':
|
||||||
|
router.push('/Manager/NewsInformation');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -11,64 +11,61 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path:'/Manager',
|
path:'/Manager',
|
||||||
name:'Manager',
|
name:'Manager',
|
||||||
component:()=>import('../manager/Manage.vue'),
|
component:()=>import('../Manager/Manage.vue'),
|
||||||
children:[
|
children:[
|
||||||
|
{
|
||||||
|
path:'/Manager/Main',
|
||||||
|
component:() =>import('../Manager/components/Main.vue')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path:'/Manager/User',
|
path:'/Manager/User',
|
||||||
component:() =>import('../manager/components/User.vue')
|
component:() =>import('../Manager/components/User.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path:'/Manager/Role',
|
path:'/Manager/Role',
|
||||||
component:()=>import('../manager/components/Role.vue')
|
component:() =>import('../Manager/components/Role.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path:'/Manager/Authority',
|
path:'/Manager/Authority',
|
||||||
component:()=>import('../manager/components/Authority.vue')
|
component:() =>import('../Manager/components/Authority.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path:'/Manager/Log',
|
path:'/Manager/Log',
|
||||||
component:()=>import('../manager/components/Log.vue')
|
component:() =>import('../Manager/components/Log.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path:'/Manager/Daily',
|
path:'/Manager/Daily',
|
||||||
component:()=>import('../manager/components/Daily.vue')
|
component:() =>import('../Manager/components/Daily.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path:'/Manager/Message',
|
path:'/Manager/Message',
|
||||||
component:()=>import('../manager/components/Message.vue')
|
component:() =>import('../Manager/components/Message.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path:'/Manager/Carousel',
|
path:'/Manager/Carousel',
|
||||||
component:()=>import('../manager/components/Carousel.vue')
|
component:() =>import('../Manager/components/Carousel.vue')
|
||||||
},
|
} ,{
|
||||||
{
|
|
||||||
path:'/Manager/TeamProfile',
|
path:'/Manager/TeamProfile',
|
||||||
component:()=>import('../manager/components/TeamProfile.vue')
|
component:() =>import('../Manager/components/TeamProfile.vue')
|
||||||
},
|
},{
|
||||||
{
|
|
||||||
path:'/Manager/ProjectRecommend',
|
path:'/Manager/ProjectRecommend',
|
||||||
component:()=>import('../manager/components/ProjectRecommend.vue')
|
component:() =>import('../Manager/components/ProjectRecommend.vue')
|
||||||
},
|
},{
|
||||||
{
|
|
||||||
path:'/Manager/NewsDisplay',
|
path:'/Manager/NewsDisplay',
|
||||||
component:()=>import('../manager/components/NewsDisplay.vue')
|
component:() =>import('../Manager/components/NewsDisplay.vue')
|
||||||
},
|
},{
|
||||||
{
|
|
||||||
path:'/Manager/UserRecommend',
|
path:'/Manager/UserRecommend',
|
||||||
component:()=>import('../manager/components/UserRecommend.vue')
|
component:() =>import('../Manager/components/UserRecommend.vue')
|
||||||
},
|
},{
|
||||||
{
|
|
||||||
path:'/Manager/ProjectInformation',
|
path:'/Manager/ProjectInformation',
|
||||||
component:()=>import('../manager/components/ProjectInformation.vue')
|
component:() =>import('../Manager/components/ProjectInformation.vue')
|
||||||
},
|
},{
|
||||||
{
|
|
||||||
path:'/Manager/TeamInformation',
|
path:'/Manager/TeamInformation',
|
||||||
component:()=>import('../manager/components/TeamInformation.vue')
|
component:() =>import('../Manager/components/TeamInformation.vue')
|
||||||
},
|
},{
|
||||||
{
|
|
||||||
path:'/Manager/NewsInformation',
|
path:'/Manager/NewsInformation',
|
||||||
component:()=>import('../manager/components/NewsInformation.vue')
|
component:() =>import('../Manager/components/NewsInformation.vue')
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user