Why does the same thing before change to true
let model = [
{code: 1, value:""}
{code: 2, value:"1"}
{code: 17, value:"2"}
{code: 11, value:"3"}
]
//
let model = items.map((n) =>
Object.assign({}, n, {
// model.valuevalue1. 11.
checked: model.value.includes(n.code)
}))
//
model = [
{code: 1, value:"" checked:true}
{code: 2, value:"1"checked:fales}
{code: 17, value:"2"checked:true}
{code: 11, value:"3"checked:true}
]