hmp 4 lat temu
rodzic
commit
09a5d19dcf
1 zmienionych plików z 2 dodań i 2 usunięć
  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);
 					}
 				}
 			},