Browse Source

feat: 修复练习页报undefined的错误。

pull/6/head
zjz1993 5 years ago
parent
commit
718d1ea663
  1. 5
      modules/practice.js

5
modules/practice.js

@ -38,7 +38,7 @@ app.get('/practice', async (req, res) => {
await userQuery.update(User).set({current_p_id: currentPId}).where("id = :id", { id:userId }).execute();
}
} else {
test.push(resultItem.order);
unFinishedIdArray.push(resultItem.order);
}
});
}
@ -64,8 +64,7 @@ app.get('/practice', async (req, res) => {
}
res.render('practice', {
user:res.locals.user,
result,
newRating
result
})
} catch (e) {
syzoj.log(e);

Loading…
Cancel
Save