diff --git a/src/renderer/src/api/mode/index.js b/src/renderer/src/api/mode/index.js
index add0402..26540bb 100644
--- a/src/renderer/src/api/mode/index.js
+++ b/src/renderer/src/api/mode/index.js
@@ -118,7 +118,6 @@ export function docList(params) {
})
}
-
// 保存教学大纲
export function addSyllabus(data) {
return request({
@@ -128,3 +127,35 @@ export function addSyllabus(data) {
})
}
+// 获取保存的大纲列表
+export function syllabusList(params) {
+ return request({
+ url: '/education/generate/list',
+ method: 'get',
+ params
+ })
+}
+
+// 大纲详情
+export function syllabuss(id) {
+ return request({
+ url: '/education/generate/' + id,
+ method: 'get',
+ })
+}
+
+// 删除大纲
+export function removeSyllabus(id) {
+ return request({
+ url: '/education/generate/' + id,
+ method: 'delete',
+ })
+}
+
+export function editSyllabus(data) {
+ return request({
+ url: '/education/generate',
+ method: 'put',
+ data
+ })
+}
diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue
index ea67d82..543c928 100644
--- a/src/renderer/src/components/template-study/container/right.vue
+++ b/src/renderer/src/components/template-study/container/right.vue
@@ -344,6 +344,8 @@ const againResult = async (index, item) => {
}
}
+
+const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
// 一键研读
const getCompletion = async () => {
isStarted.value = new Array(childTempList.length).fill(false)
@@ -372,6 +374,7 @@ const getCompletion = async () => {
conversationId: conversation_id.value,
stream: false
})
+ await delay(1000); // 每个请求之间延迟 1 秒
data = res.data
}
// 知识库模型
diff --git a/src/renderer/src/views/teachingDesign/container/center.vue b/src/renderer/src/views/teachingDesign/container/center.vue
index 2bb122c..cfc8d45 100644
--- a/src/renderer/src/views/teachingDesign/container/center.vue
+++ b/src/renderer/src/views/teachingDesign/container/center.vue
@@ -9,29 +9,41 @@