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); }) } }