报错:[Vue warn]: Error in callback for watcher "value": "Value should be trueValue or falseValue."

With iview component library + vue, reportedly had the wrong [Vue warn]: Error in callback for watcher "value": "Value should be trueValue or falseValue."

Give me back my value is the value 0, 1 buttons here are true, false, that means that this error

Solution:

Triplet of expressions to render judgment in the list of assignment to status reassigned to solve

item.status = item.status === 0 ? false : true

Guess you like

Origin www.cnblogs.com/duhui/p/12104054.html