提交 40f615d3 authored 作者: matian's avatar matian

隐藏测试课程

上级 02affae6
...@@ -12,10 +12,12 @@ const page = reactive({ size: 10, currentPage: 1 }) ...@@ -12,10 +12,12 @@ const page = reactive({ size: 10, currentPage: 1 })
// 筛选之后的数据 // 筛选之后的数据
const courseFilterList = $computed(() => { const courseFilterList = $computed(() => {
if (props.type === 'PAAP(Ⅰ)') { if (props.type === 'PAAP(Ⅰ)' || props.type === '') {
return props.courseList.filter((item: any) => item.category === props.type && item.is_test === false) return props.courseList.filter(
(item: any) => (item.category === props.type || props.type === '') && item.is_test === false
)
} else { } else {
return props.courseList.filter((item: any) => item.category === props.type || props.type === '') return props.courseList.filter((item: any) => item.category === props.type)
} }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论