problem description
1. Click on the collection to cache the current product locally, and the backend has put the product data in the header. I will just call it directly.
I clicked on different items four times, but I didn"t need to append them to the array. Could you tell me how to append the items clicked later in the code to the same array
Wishlist:function () {
var array = [];
let adrObj = {
"id": misslove.product.info.id,
"name":misslove.product.info.name,
"image":misslove.product.info.image,
"href":misslove.product.info.href,
};
array[0]= adrObj;
store.set(misslove.product.info.id,array); // - JSON.stringify
/ /
var user = store.get(misslove.product.info.id,array); // - JSON.parse
console.log(user);
store.forEach(function(key, array) {
console.log( array)
}) //
},