ccj %!s(int64=2) %!d(string=hai) anos
pai
achega
ee6279becf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      App.vue

+ 1 - 1
App.vue

@@ -296,7 +296,7 @@
 			// #endif
 			// this.$socket.initWebIM(this.$ws, true, true)
 			let userInfo = uni.getStorageSync('userInfo') || '';
-			if (userInfo.id) {
+			if (userInfo&&userInfo.id) {
 				//更新登陆状态
 				uni.getStorage({
 					key: 'userInfo',