lzw 3 月之前
父节点
当前提交
59edf105ff
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/components/pages/test/checkAi/aiLeader.vue

+ 3 - 2
src/components/pages/test/checkAi/aiLeader.vue

@@ -588,6 +588,7 @@ export default {
     async addChat(names) {
       let _uid = uuidv4();
       let cid = `${_uid}-testSmarter`; // 生成的 cid
+      this.cid = cid
       let params = [{
         uid: this.userid,
         name: names,
@@ -1581,7 +1582,7 @@ export default {
       }
     },
     //保存消息
-    async insertChat(_uid,cid) {
+    async insertChat(_uid) {
       let _data = this.array.find(i => i.uid == _uid);
       this.saveUid = ''
       this.faloading = false
@@ -1599,7 +1600,7 @@ export default {
         alltext: _data.aiContent,
         type: "chat",
         filename: _data.filename,
-        session_name: cid
+        session_name: this.cid
       };
       this.ajax
         .post("https://gpt4.cocorobo.cn/insert_chat", params)