Ver código fonte

游戏模块v1.9

李志伟 3 anos atrás
pai
commit
8f8ad42666
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      src/components/Question/edit.vue

+ 3
- 0
src/components/Question/edit.vue Ver arquivo

@@ -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)