Add user-specific quiz statistics

This commit is contained in:
2022-11-05 18:44:42 +01:00
parent f5d0734e84
commit cc20ed870c
5 changed files with 156 additions and 12 deletions

View File

@@ -37,6 +37,9 @@ export const mutations = {
setCourses (state, courses) {
state.courses = courses
},
initCourse (state, courseID) {
state.user.setGames({ [courseID]: {} })
},
addFavoriteCourse (state, courseID) {
state.user.courses.push(courseID)
},