sidebar optimization

This commit is contained in:
marvzhang
2020-02-02 09:59:47 +08:00
parent 523a5c9c7c
commit 99e73c016b
4 changed files with 41 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export default {
'Deploys': '部署',
'Sites': '网站',
'Setting': '设置',
'Project': '项目',
// 标签
'Overview': '概览',

View File

@@ -47,6 +47,25 @@ export const constantRouterMap = [
}
]
},
{
path: '/projects',
component: Layout,
meta: {
title: 'Project',
icon: 'fa fa-gear'
},
children: [
{
path: '',
name: 'Project',
component: () => import('../views/project/ProjectList'),
meta: {
title: 'Project',
icon: 'fa fa-code-fork'
}
}
]
},
{
path: '/spiders',
component: Layout,

View File

@@ -101,3 +101,10 @@ export default {
}
}
</script>
<style scoped>
.menu-wrapper >>> .fa {
width: 16px;
text-align: center;
}
</style>

View File

@@ -0,0 +1,14 @@
<template>
<div class="app-container">
</div>
</template>
<script>
export default {
name: 'ProjectList'
}
</script>
<style scoped>
</style>