In element el-checkel-checkbox-button, I define the parameter time [], but the reality is boolean.

clipboard.png

clipboard.png
checkboxhefei []
clipboard.png
true boolean




clipboard.png
I put this alone, and it becomes a normal array

A little wonder why?

Jan.27,2022

addPersonData: {
    checkboxhefei: []
}

this form can be used normally (you can write a few values in this array and test it). Your problem should be that when you assign a value to the checkboxhefei field, you don't assign it.
this problem can be dealt with in the form of this.$set.

Menu