瀏覽代碼

游戏模块v1.9

李志伟 3 年之前
父節點
當前提交
8f8ad42666
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/components/Question/edit.vue

+ 3
- 0
src/components/Question/edit.vue 查看文件

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