Browse Source

更新排序题

lex 2 years ago
parent
commit
cadb4ba70a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/unit-test/model/drag-question/index.tsx

+ 4 - 2
src/views/unit-test/model/drag-question/index.tsx

@@ -101,7 +101,6 @@ export default defineComponent({
           answerExtra: index + 1
           answerExtra: index + 1
         })
         })
       })
       })
-      console.log(result, 'result -----')
       emit('update:value', result)
       emit('update:value', result)
     }
     }
 
 
@@ -122,6 +121,8 @@ export default defineComponent({
         answer: item.questionAnswer,
         answer: item.questionAnswer,
         answerExtra: state.options.length + 1
         answerExtra: state.options.length + 1
       })
       })
+
+      state.list = result
       emit('update:value', result)
       emit('update:value', result)
 
 
       initOptions()
       initOptions()
@@ -165,7 +166,8 @@ export default defineComponent({
           }
           }
           state.options.push(tmp)
           state.options.push(tmp)
         })
         })
-        state.list = state.options
+        // console.log(state.options)
+        // state.list = state.options
       }
       }
       // else {
       // else {
       //   const resultValue: any = []
       //   const resultValue: any = []