修改知识点在第六题还需要点击右侧箭头

main
JayChou 2 days ago
parent 092eecd496
commit 66b7fbc691
  1. 8
      src/layout/knowledgePage.vue

@ -48,8 +48,8 @@ const index = ref(0)
//
// const activeData = ref({})
const SubRight = async() => {
await knowledgeCheckService(Knowledges.value[currentKnowledgeIndex.value].id)
Knowledges.value[currentKnowledgeIndex.value].isStudy = true
await knowledgeCheckService(Knowledges.value[currentKnowledgeIndex.value + 1].id)
Knowledges.value[currentKnowledgeIndex.value + 1].isStudy = true
if (currentKnowledgeIndex.value + 1 < Knowledges.value.length) {
currentKnowledgeIndex.value++; //
@ -68,6 +68,10 @@ const getKnowledge = async () => {
Knowledges.value = res.result.kpVlist
// isStudy.value = Knowledges.value[currentKnowledgeIndex.value].isStudy
console.log(Knowledges.value, 'ress')
await knowledgeCheckService(Knowledges.value[currentKnowledgeIndex.value].id)
Knowledges.value[currentKnowledgeIndex.value].isStudy = true
isStudy.value = true
}
//
const currentKnowledgeIndex = ref(0);

Loading…
Cancel
Save