diff --git a/src/store/actions/myAnswers.js b/src/store/actions/myAnswers.js index 7404325..adbedbb 100644 --- a/src/store/actions/myAnswers.js +++ b/src/store/actions/myAnswers.js @@ -4,6 +4,6 @@ export const addAnswer = ({commit}, payload) => { commit(types.ADD_ANSWER, payload) }; -export const cleatAnswers = ({commit}) => { +export const clearAnswers = ({commit}) => { commit(types.CLEAR_ANSWER) }; diff --git a/src/views/PrePare.vue b/src/views/PrePare.vue index 91fecda..2738101 100644 --- a/src/views/PrePare.vue +++ b/src/views/PrePare.vue @@ -31,10 +31,10 @@ created() { this.currentBook = this.allBooks[+this.bookIndex]; this.currentChap = this.currentBook.bookList[+this.chapIndex]; - this.cleatAnswers() + this.clearAnswers() }, methods: { - ...mapActions(['cleatAnswers']), + ...mapActions(['clearAnswers']), goTo() { this.$router.push(`/exercise/${this.bookIndex}/workcard/${this.chapIndex}`) }