Commit 3b01da02 authored by hewenhao's avatar hewenhao

feat: vibrateShort

parent 06763543
import { action, Action, computed, Computed, State, Thunk, thunk } from 'easy-peasy'
import { AppStoreModel } from '@/store/store-model'
import { getQuestionList, type StageDetail, getStageDetail, completeStage, StageType, type CompleteStageOut, StageLevel } from '@/api'
import { showLoading, hideLoading, showModal, redirectTo } from '@tarojs/taro'
import { showLoading, hideLoading, showModal, redirectTo, vibrateShort } from '@tarojs/taro'
import {
QuestionType,
QuestionAnswer,
......@@ -129,6 +129,7 @@ const gameModel: GameModel = {
}),
updateUserAnswer: action((state, char) => {
vibrateShort()
const index = state.currentInputIndex
const answers = state.questionList[state.currentQuestionIndex]?.answers
const val = answers?.[index]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment