Answer the question
In order to leave comments, you need to log in
How to correctly change true to false and vice versa?
I have a function (click_on_button) that changes false to true. I do not understand how to make this value change by pressing a button, depending on what is set on the server. Now my function looks like this:
foo() {
var mydata = {'sound': true}
var id = this.profile.id
this.$store.dispatch('EDIT_PROFILE', {id, mydata})
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question