浏览代码

update README.sh

warrior 4 月之前
父节点
当前提交
032c15a9b2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      projects/live-app/src/moduls/user/profile/profile.component.ts

+ 1 - 1
projects/live-app/src/moduls/user/profile/profile.component.ts

@@ -90,7 +90,7 @@ export class ProfileComponent implements OnInit {
         color:'#a1a1a1',
       },
     }
-    return map[this.userStatus]
+    return map?.[this.userStatus] || map['OFFLINE'];
   }
   ngOnInit() {
     this.activateRoute.paramMap.subscribe(async (params) => {