I am trying to use vue-cookies package and setup an initial cookie like this which works:
this.$cookies.set('toDo',{ id:1, completed:false});
in a mixin I am running some other conditions and I want to update the value of completed
to true when calling that method in child components.
but if I do:
this.$cookies.set('toDo',{ completed:true});
then it overwrites and I lose the id value. How can I just change completed
value to true and not overwrite the entire cookie value?
Comments
Post a Comment