新增项目管理页面
This commit is contained in:
@@ -47,6 +47,11 @@
|
||||
<el-icon><Promotion /></el-icon>
|
||||
<template #title>融豆管理</template>
|
||||
</el-menu-item>
|
||||
|
||||
<el-menu-item v-if="userStore.isAdmin" index="/projects">
|
||||
<el-icon><Setting /></el-icon>
|
||||
<template #title>项目管理</template>
|
||||
</el-menu-item>
|
||||
|
||||
<el-menu-item index="/profile">
|
||||
<el-icon><UserFilled /></el-icon>
|
||||
@@ -208,7 +213,7 @@ import {
|
||||
Monitor,
|
||||
Connection,
|
||||
CreditCard,
|
||||
Bell
|
||||
Bell,
|
||||
} from '@element-plus/icons-vue'
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
@@ -81,6 +81,16 @@ const routes = [
|
||||
requiresAdmin: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'projects',
|
||||
name: 'Projects',
|
||||
component: () => import('@/views/Project.vue'),
|
||||
meta: {
|
||||
title: '项目管理 - 炬融圈',
|
||||
icon: 'Project',
|
||||
requiresAdmin: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'profile',
|
||||
name: 'Profile',
|
||||
|
||||
9
src/views/Project.vue
Normal file
9
src/views/Project.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
项目管理
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user