box.vue
js
called in the above way, the modal box pops up after the call, and the OK button in the modal box is clicked to transfer the data in the modal box to the current component, but keep reporting commit not defined
using vuex commit. successBtn () {
this.show = false,
this.addMemberList = this.resultList;
conole.log(this);
elf.$store.commit("addMemberList", this.addMemberList);
},
print this, found that there is no store object, find the reason
in addition, check
in the created of the custom component
created () {
self = this;
}
still can"t get the store object
find the reason