From 1f85e8c2e3286cb36214de65dd349a0577e4ef58 Mon Sep 17 00:00:00 2001 From: ccy <1292572728@qq.com> Date: Sat, 17 Mar 2018 20:35:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E5=88=AB=E5=AD=97?= =?UTF-8?q?=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/actions/myAnswers.js | 2 +- src/views/PrePare.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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}`) }