mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
sidebar optimization
This commit is contained in:
@@ -12,6 +12,7 @@ export default {
|
||||
'Deploys': '部署',
|
||||
'Sites': '网站',
|
||||
'Setting': '设置',
|
||||
'Project': '项目',
|
||||
|
||||
// 标签
|
||||
'Overview': '概览',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -101,3 +101,10 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.menu-wrapper >>> .fa {
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
14
frontend/src/views/project/ProjectList.vue
Normal file
14
frontend/src/views/project/ProjectList.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ProjectList'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user