call
in actions commit("mapSet",map1);
mutations is
mapSet:(state,mymap)=>{
state.mymap=mymap;
},
where map1 is an object, that is, the parameter passed in is an object, and an error will occur when it is called
mapSetactions
plugins
excuse me, what is the reason for this? How to assign values correctly?