为什么Promise里面的数据获取不到?
代码如下:
Login: function () {
let res = this.$store.dispatch("getUserLogin", {
phone: this.phone,
password: this.password,
});
console.log(res);
console.log("data数据:" + res.data);
这是getUserLogin方法的代码
getUserLogin: async function (context, value) {
console.log(" getUserLogin");
let res = await getLogin(value);
return res;
},
