gemercheung 2 年之前
父節點
當前提交
e878d095d8
共有 3 個文件被更改,包括 7 次插入6 次删除
  1. 3 3
      src/components/chatRoom/controls/actions.ts
  2. 3 2
      src/components/chatRoom/memberList.vue
  3. 1 1
      src/store/modules/rtc.ts

+ 3 - 3
src/components/chatRoom/controls/actions.ts

@@ -115,9 +115,9 @@ export function handleActions({
     default:
       break;
   }
-  if (members?.length) {
-    console.log('服务器的', members);
-  }
+  // if (members?.length) {
+  //   console.log('服务器的', members);
+  // }
 }
 
 //被动处理初始化

+ 3 - 2
src/components/chatRoom/memberList.vue

@@ -94,7 +94,8 @@
   const isNativeLeader = computed(() => rtcStore.isLeader);
 
   // const animateActive = ref(false);
-  const props = defineProps({
+  // const props =
+  defineProps({
     show: propTypes.bool.def(false),
     animateActive: propTypes.bool.def(false),
     data: {
@@ -108,7 +109,7 @@
   });
 
   watchEffect(() => {
-    console.log('memberList', props.data);
+    // console.log('memberList', props.data);
   });
   // watch(
   //   () => props.data,

+ 1 - 1
src/store/modules/rtc.ts

@@ -296,7 +296,7 @@ export const useRtcStore = defineStore({
         return prev;
       }, []);
       const sortList = sortBy(memberList, ['Order', 'UserId'], ['asc', 'asc']);
-      console.log('sortList', sortList);
+      // console.log('sortList', sortList);
       this.memberList = sortList;
       const me = sortList.find((i: UserInfoType) => i.UserId === this.userId);
       if (me) {