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

bug fixes

上级 f1833097
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
tag: 'menu_course', tag: 'menu_course',
title: '课程中心', title: '课程中心',
icon: 'icon-bianzu6-hong', icon: 'icon-bianzu6-hong',
children: [{ tag: 'menu_course_learn', title: '课程', path: '/course/learn' }] children: [{ tag: 'menu_course_learn', title: '课程中心', path: '/course/learn' }]
}, },
{ {
tag: 'menu_exam', tag: 'menu_exam',
......
...@@ -51,12 +51,12 @@ export default { ...@@ -51,12 +51,12 @@ export default {
return this.$store.state.user.role return this.$store.state.user.role
}, },
currentList() { currentList() {
if (this.role === 2) { // if (this.role === 2) {
return this.data.map(item => { // return this.data.map(item => {
item.children = item.children.filter(item => item.type === 2) // item.children = item.children.filter(item => item.type === 2)
return item // return item
}) // })
} // }
return this.data return this.data
} }
}, },
......
<template> <template>
<app-container :title="title"> <app-container>
<template #header-right> <template #header-right>
<div class="search"> <div class="search">
<el-input prefix-icon="el-icon-search" clearable v-model="searchValue" @keyup.enter.native="handleSearch" /> <el-input prefix-icon="el-icon-search" clearable v-model="searchValue" @keyup.enter.native="handleSearch" />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论