ccj 2 lat temu
rodzic
commit
ee6279becf
1 zmienionych plików z 1 dodań i 1 usunięć
  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',