hmp 4 năm trước cách đây
mục cha
commit
09a5d19dcf
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      pages/activityList/home/home.vue

+ 2 - 2
pages/activityList/home/home.vue

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