Commit fbc9b1e1 by 陈超

A

parent 6bf3d8bf
...@@ -523,8 +523,11 @@ ...@@ -523,8 +523,11 @@
}) })
}, },
onChoose: function(opt) { onChoose: function(opt) {
console.log(this.currentQuestionTypeKey)
if(this.currentQuestionTypeKey == 'radio') { if(this.currentQuestionTypeKey == 'radio') {
this.currentOptions.forEach( r => { this.currentOptions.forEach( r => {
console.log(r)
console.log(opt)
r.selected = opt.key == r.key r.selected = opt.key == r.key
}) })
} }
......
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