|
|
@@ -216,7 +216,7 @@ import { chat_no_stream, chat_stream, getAgentModel, chat_no_stream2 } from '@/t
|
|
|
import { useSlidesStore, useMainStore } from '@/store'
|
|
|
import { lang } from '@/main'
|
|
|
import MarkdownIt from 'markdown-it'
|
|
|
-import { getWorkPageId } from '@/services/course'
|
|
|
+import { getWorkPageId, addPPTOp2 } from '@/services/course'
|
|
|
import FileInput from '@/components/FileInput2.vue'
|
|
|
import axios from '@/services/config'
|
|
|
import message from '@/utils/message'
|
|
|
@@ -270,9 +270,11 @@ const props = withDefaults(defineProps<{
|
|
|
userid?: string | null
|
|
|
userJson?: any
|
|
|
courseTitle?: string | null
|
|
|
+ courseid?: string | null
|
|
|
}>(), {
|
|
|
userid: null,
|
|
|
userJson: null,
|
|
|
+ courseid: null,
|
|
|
courseTitle: null,
|
|
|
})
|
|
|
|
|
|
@@ -313,6 +315,18 @@ const sendMessage = () => {
|
|
|
if (chatLoading.value) {
|
|
|
return
|
|
|
}
|
|
|
+ if (props.courseid) {
|
|
|
+ addPPTOp2({
|
|
|
+ id: props.courseid,
|
|
|
+ userid: props.userid || '',
|
|
|
+ type: '4',
|
|
|
+ index: 0, // 获取当前ppt页面的id
|
|
|
+ data: inputText.value
|
|
|
+ }).then(res => {
|
|
|
+ console.log('res', res)
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
// 检查是否有文件正在处理中
|
|
|
const hasProcessingFile = files.value.some(file => file.isProcessing)
|
|
|
if (hasProcessingFile) {
|