You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
638 B

export default {
sethtnameAsync: (context, payload) => {
console.log('hhh');
setTimeout(() => {
console.log('hahha');
context.commit('sethtname', payload)
}, 3000);
console.log('lululu');
},
daAjax: (context, payload) => {
//vuex是不能被vue实例的
let that = payload.that;
let url = this.axios.urls.SYSTEM_USER_DOLOGIN;
console.log(url);
that.axios.post(url, {}).then((res) => {
console.log('doAjax....');
console.log(res);
}).catch((err) => {
console.log(err);
})
}
}