Jelajahi Sumber

userInfo字符串化

htc 1 tahun lalu
induk
melakukan
8094aa262d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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'
 				})