提交 b7450e4b authored 作者: 王鹏飞's avatar 王鹏飞

feat: 更新菜单项名称和图标

上级 98058285
...@@ -11,12 +11,12 @@ import { ...@@ -11,12 +11,12 @@ import {
Edit, Edit,
User, User,
Filter, Filter,
Coordinate,
Notebook, Notebook,
Picture, Picture,
UserFilled, UserFilled,
Avatar,
Promotion, Promotion,
School, Reading,
Guide, Guide,
QuestionFilled, QuestionFilled,
EditPen, EditPen,
...@@ -94,7 +94,7 @@ export const menus: IMenuItem[] = [ ...@@ -94,7 +94,7 @@ export const menus: IMenuItem[] = [
}, },
{ {
tag: 'v1-learning', tag: 'v1-learning',
name: '基础信息', name: '教务管理',
path: '/admin', path: '/admin',
children: [ children: [
{ {
...@@ -105,7 +105,7 @@ export const menus: IMenuItem[] = [ ...@@ -105,7 +105,7 @@ export const menus: IMenuItem[] = [
}, },
{ {
tag: 'v1-learning-teacher-list', tag: 'v1-learning-teacher-list',
icon: School, icon: Avatar,
name: '教师管理', name: '教师管理',
path: '/admin/staff', path: '/admin/staff',
}, },
...@@ -117,7 +117,7 @@ export const menus: IMenuItem[] = [ ...@@ -117,7 +117,7 @@ export const menus: IMenuItem[] = [
}, },
{ {
tag: 'v1-learning-class-list', tag: 'v1-learning-class-list',
icon: School, icon: Reading,
name: '班级管理', name: '班级管理',
path: '/admin/class', path: '/admin/class',
}, },
...@@ -146,40 +146,6 @@ export const menus: IMenuItem[] = [ ...@@ -146,40 +146,6 @@ export const menus: IMenuItem[] = [
// }, // },
], ],
}, },
{
tag: 'v1-backend-data-dictionary-list',
name: '系统管理',
path: '/system',
children: [
{
tag: 'v1-backend-data-dictionary-list',
icon: Notebook,
name: '数据字典',
path: '/system/dictionary',
},
{
tag: 'v1-backend-cover-list',
icon: Picture,
name: '封面管理',
path: '/system/cover',
},
{
tag: 'v1-backend-suggestion-list',
icon: ChatDotRound,
name: ' 投诉建议管理',
path: '/system/suggestion',
},
...(import.meta.env.MODE === 'school'
? [
{
icon: Setting,
name: '大模型配置',
path: '/system/llm',
},
]
: []),
],
},
{ {
tag: 'v1-teaching', tag: 'v1-teaching',
name: '教学管理', name: '教学管理',
...@@ -238,4 +204,38 @@ export const menus: IMenuItem[] = [ ...@@ -238,4 +204,38 @@ export const menus: IMenuItem[] = [
: []), : []),
], ],
}, },
{
tag: 'v1-backend-data-dictionary-list',
name: '系统管理',
path: '/system',
children: [
{
tag: 'v1-backend-data-dictionary-list',
icon: Notebook,
name: '数据字典',
path: '/system/dictionary',
},
{
tag: 'v1-backend-cover-list',
icon: Picture,
name: '封面管理',
path: '/system/cover',
},
{
tag: 'v1-backend-suggestion-list',
icon: ChatDotRound,
name: ' 投诉建议管理',
path: '/system/suggestion',
},
...(import.meta.env.MODE === 'school'
? [
{
icon: Setting,
name: '大模型配置',
path: '/system/llm',
},
]
: []),
],
},
] ]
...@@ -28,7 +28,7 @@ const cacheScope = computed(() => { ...@@ -28,7 +28,7 @@ const cacheScope = computed(() => {
<div class="app-main-container"> <div class="app-main-container">
<router-view v-slot="{ Component, route: currentRoute }"> <router-view v-slot="{ Component, route: currentRoute }">
<keep-alive :key="cacheScope" :max="10"> <keep-alive :key="cacheScope" :max="10">
<component :is="Component" :key="currentRoute.path" /> <component :is="Component" :key="currentRoute.fullPath" />
</keep-alive> </keep-alive>
</router-view> </router-view>
</div> </div>
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论