defines a global method of vue, but it can be called in the component, but it cannot be called in vuex. Prompt undefined
Vue.prototype.ajax = function (){
alert("aaaaaaa");
};
var store = new Vuex.Store({
state: {
user: {},
},
actions: {
signout: function(context) {
this.ajax();
//undefined
}
}
});