-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Description
My data goes below
data: {
contacts: {
"1": {
isSelected: false,
UID:"1",
cardType: 0
},
"2": {
isSelected: false,
UID:"2",
cardType: 0
},
"3": {
isSelected: false,
UID:"3",
cardType: 0
},
}
...
I could use this method to add new contact, but it got a compatibility problem, so I wonder are there some other ways to add new property to object, or I'd better change to use array instead of object.
this.contacts = Object.assign({}, this.contacts, newObj);
Thanks a lot.
Metadata
Metadata
Assignees
Labels
No labels