Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 12, 2024
1 parent 781e68b commit 911f479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ $(document).ready(function () {

function initializeQuestion() {
const currentKey = questionKeys[currentQuestionIndex];
const source = questionsData[key] && questionsData[key].source;
const translation = questionsData[key] && questionsData[key].translation;
const source = questionsData[currentKey] && questionsData[currentKey].source;
const translation = questionsData[currentKey] && questionsData[currentKey].translation;

console.log("当前题目索引:", currentQuestionIndex);
console.log("当前键名:", currentKey);
Expand Down

0 comments on commit 911f479

Please sign in to comment.