| 
					
				 | 
			
			
				@@ -18,7 +18,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            element-loading-background="#f6f9ff"  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           :style="{minHeight: item.loading ? '50px' : 'unset'}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           :style="{minHeight: item.loading ? '50px' : 'unset', minWidth: item.loading ? '50px' : 'unset'}" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             class="content" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-loading="item.loading" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-html="item.aiContent" 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -157,6 +157,20 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       handler(newValue, oldValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.course = this.unitJson[0].chapterInfo[0].taskJson; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    courseId: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      immediate: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      deep: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      handler(newValue, oldValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(newValue){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getChatList().then(_ => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$nextTick(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              console.log(this.$refs.chatDialog.scrollHeight) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$refs.chatDialog.scrollTop = this.$refs.chatDialog.scrollHeight; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -271,7 +285,9 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.array.find(i => i.uid == _uid).isShowSynchronization = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.array.find(i => i.uid == _uid).loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // 这里保存对话 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.insertChat(_uid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // if(this.courseId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   this.insertChat(_uid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           //对话还在继续 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -311,7 +327,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         alltext: _data.aiContent, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: "chat", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         filename: _data.filename, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        session_name: `${this.courseId}-addCourse` //这是对话记录位置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        session_name: `${this.courseId}-addCourseA` //这是对话记录位置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.ajax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .post("https://gpt4.cocorobo.cn/insert_chat", params) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -327,7 +343,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           userid: this.userid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           groupid: "602def61-005d-11ee-91d8-005056b8q12w", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // session_name:`` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          session_name: `${this.courseId}-addCourse` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          session_name: `${this.courseId}-addCourseA` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.ajax 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           .post("https://gpt4.cocorobo.cn/get_agent_park_chat", params) 
			 |