소스 검색

userInfo字符串化

htc 1 년 전
부모
커밋
8094aa262d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'
 				})