Browse Source

取消@角色

SanHQin 1 month ago
parent
commit
e164469046
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/components/pages/classroomObservation/components/chatArea.vue

+ 5 - 3
src/components/pages/classroomObservation/components/chatArea.vue

@@ -811,7 +811,7 @@ export default {
     choseRoleList() {
       let result = [...this.roleList, ...this.publicRoleList];
       const _index = this.textareaValue.lastIndexOf("@");
-      if (_index !== -1) {
+      if (_index !== -1 && result.length>0) {
         let roleName = this.textareaValue.substring(_index + 1);
         result = result.filter(i => i.assistantName.indexOf(roleName) != -1);
       } else {
@@ -2380,6 +2380,7 @@ ${JSON.stringify(_list)}
       return new File([blob], filename, { type: "audio/wav" });
     },
     getRoleList() {
+      return
       this.roleList = [];
       let params = {
         userId: this.userId
@@ -2399,6 +2400,7 @@ ${JSON.stringify(_list)}
         });
     },
     getPublicRoleList() {
+    return
       this.publicRoleList = [];
       let params = {
         userId: this.userId,
@@ -2474,8 +2476,8 @@ ${JSON.stringify(_list)}
       }),
         (this.audioUrl = "");
       this.chatList = [];
-      this.getRoleList();
-      this.getPublicRoleList();
+      // this.getRoleList();
+      // this.getPublicRoleList();
       this.getChatList().then(_ => {
         this.loading = false;
         this.scrollBottom();