|
@@ -246,7 +246,7 @@ export default defineComponent({
|
|
|
|
|
|
console.log(list, 'list')
|
|
|
|
|
|
- let _firstIndex = list.findIndex((n: any) => n.materialId == route.query.kId)
|
|
|
+ let _firstIndex = list.findIndex((n: any) => n.knowledgePointMaterialRelationId == route.query.kId || n.materialId == route.query.kId)
|
|
|
_firstIndex = _firstIndex > -1 ? _firstIndex : 0
|
|
|
const item = list[_firstIndex]
|
|
|
|