소스 검색

🐞 fix: 修改接口名称

wolyshaw 3 년 전
부모
커밋
075a8c2c5f
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/components/live-broadcast/event.ts
  2. 2 2
      src/components/live-message/model/look-model.tsx

+ 1 - 1
src/components/live-broadcast/event.ts

@@ -16,7 +16,7 @@ export const LIVE_EVENT_MESSAGE = {
   'RC:ForcedOffline': 'ForcedOffline',
   'RC:LookerLoginOut': 'LookerLoginOut',
   'RC:Chatroom:downSeat': 'DownSeat',
-  'RC:Chatroom:MemberCount': 'MemberCount',
+  'RC:Chatroom:MemberCountUp': 'MemberCount',
 }
 
 export default mitt()

+ 2 - 2
src/components/live-message/model/look-model.tsx

@@ -38,14 +38,14 @@ export default defineComponent({
     await this._init()
     this.loadingLook = true
     event.on(LIVE_EVENT_MESSAGE["RC:Chatroom:Welcome"], this.onWelcome);
-    event.on(LIVE_EVENT_MESSAGE["RC:Chatroom:MemberCount"], this.onMemberCount);
+    event.on(LIVE_EVENT_MESSAGE["RC:Chatroom:MemberCountUp"], this.onMemberCount);
     setTimeout(() => {
       this.loadingLook = false;
     })
   },
   beforeUnmount() {
     event.off(LIVE_EVENT_MESSAGE["RC:Chatroom:Welcome"], this.onWelcome);
-    event.off(LIVE_EVENT_MESSAGE["RC:Chatroom:MemberCount"], this.onMemberCount);
+    event.off(LIVE_EVENT_MESSAGE["RC:Chatroom:MemberCountUp"], this.onMemberCount);
   },
   methods: {
     async _init() {