Commit 8b6b98f5 by panjiangyi

修改创建会话逻辑

parent 88fc512e
Showing with 2 additions and 5 deletions
......@@ -159,11 +159,8 @@ export default class ChatCreator extends Vue {
@buttonThrottle()
private createChat() {
const { keyvalue, model_name } = this.$route.params;
this._createChat({
modelName: model_name,
selectedListId: keyvalue,
uids: this.selectedUsers.map(id => String(id))
return new Promise(resolve => {
this.$emit("submit", this.selectedUsers.map(id => String(id)), resolve);
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment