diff --git a/src/components/Question.vue b/src/components/Question.vue
index 2eb5555..0d6556b 100644
--- a/src/components/Question.vue
+++ b/src/components/Question.vue
@@ -29,6 +29,7 @@
v-on:click="answerQuestion(answer.value)">{{ answer.text }}
+
@@ -49,6 +50,9 @@
answerQuestion(value) {
this.$store.commit('answerQuestion', value)
this.$store.commit('nextQuestion')
+ },
+ goBack() {
+ this.$store.commit('previousQuestion')
}
},
}
diff --git a/src/views/Questionnaire.vue b/src/views/Questionnaire.vue
index b4061e4..4138d66 100644
--- a/src/views/Questionnaire.vue
+++ b/src/views/Questionnaire.vue
@@ -1,5 +1,8 @@