소스 검색

游戏模块v1.9

李志伟 3 년 전
부모
커밋
8f8ad42666
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      src/components/Question/edit.vue

+ 3
- 0
src/components/Question/edit.vue 파일 보기

@@ -250,6 +250,9 @@ export default {
250 250
             this.$emit('handleEditQuestion', res.data.gameQuestionMapId)
251 251
           })
252 252
         } else {
253
+          if (data.rightAnswer) {
254
+            data.rightAnswer = data.rightAnswer.toString()
255
+          }
253 256
           UpdateGameLeverQuestion({ ...data, gameId: this.gameId, questionId: this.nowQuestionId }, this.gameQuestionMapId).then((res) => {
254 257
             this.$message('修改问题成功')
255 258
             this.$emit('handleRefreshQuestion', true)