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

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

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

Loading…
Cancel
Save