From c0a0c2c65237d5eb8304ccd6f27933516486d8c3 Mon Sep 17 00:00:00 2001 From: wanglijuan <13139869837@163.com> Date: Sat, 12 Oct 2024 11:37:53 +0800 Subject: [PATCH] fix: format --- src/gallery/classroom/hx-chat/fcr-chatroom/store/user.ts | 4 ++-- src/gallery/classroom/vote/store.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallery/classroom/hx-chat/fcr-chatroom/store/user.ts b/src/gallery/classroom/hx-chat/fcr-chatroom/store/user.ts index 3a8ec81..8fa12f1 100644 --- a/src/gallery/classroom/hx-chat/fcr-chatroom/store/user.ts +++ b/src/gallery/classroom/hx-chat/fcr-chatroom/store/user.ts @@ -347,7 +347,7 @@ export class UserStore { //用户信息转空的流 private userToEduStream(user: AgoraIMUserInfo): EduStream { - return new UseStream(new AgoraStream({ + return new UserStream(new AgoraStream({ streamUuid: '', streamName: '', fromUser: { @@ -401,7 +401,7 @@ export class UserStore { return AgoraRteMediaSourceState.started === stream?.audioSourceState && AgoraRteMediaPublishState.Published === stream?.audioState; } } -class UseStream extends EduStream{ +class UserStream extends EduStream{ get isLocal(): boolean { return false } diff --git a/src/gallery/classroom/vote/store.ts b/src/gallery/classroom/vote/store.ts index fdaef27..f873855 100644 --- a/src/gallery/classroom/vote/store.ts +++ b/src/gallery/classroom/vote/store.ts @@ -79,7 +79,9 @@ export class PluginStore { const { userUuid } = this._widget.classroomConfig.sessionInfo; if (value instanceof Set && value?.has(userUuid)) { this.setBoardEditOpen(true); - } else this.setBoardEditOpen(false); + } else { + this.setBoardEditOpen(false); + } } });