Browse Source

userInfo字符串化

htc 1 year ago
parent
commit
8094aa262d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/login/select.vue

+ 1 - 1
pages/login/select.vue

@@ -53,7 +53,7 @@
 			toHome(item){//1711268640588517378   1721450548101648385
 				if(item.merchantType==2) uni.setStorageSync('homestayId',item.merchantId);
 				else uni.setStorageSync('merchantId',item.merchantId);
-				uni.setStorageSync('userInfo',this.userInfo);
+				uni.setStorageSync('userInfo',JSON.stringify(this.userInfo));
 				uni.reLaunch({
 					url:'/pages/home/index'
 				})