ccj hace 2 años
padre
commit
ee6279becf
Se han modificado 1 ficheros con 1 adiciones y 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',