Open ShingLi opened 6 years ago
this.$fetch.api_user.login(this.form) .then(({data, msg,code}) => { console.log(data,msg,code) this.set_user_info({ user: data.identity, login: true }); 智力有一个问题,这里的data是后端返回的,那么data里面具体是什么样是的数据结构的,发现这里data不正确的话 action 是不会执行的
this.$fetch.api_user.login(this.form) .then(({data, msg,code}) => { console.log(data,msg,code) this.set_user_info({ user: data.identity, login: true }); 智力有一个问题,这里的data是后端返回的,那么data里面具体是什么样是的数据结构的,发现这里data不正确的话 action 是不会执行的