|
|
@@ -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();
|