ccj 2 年之前
父节点
当前提交
ee6279becf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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',