@@ -59,8 +59,8 @@
}
let result = await this.$u.api.user.login(datas);
console.log("登录后",result)
- if (result.success) {
- uni.setStorageSync("userId", res.data.id);
+ if (result) {
+ uni.setStorageSync("userId", result.id);
},