diff --git a/electron-builder-yc.yml b/electron-builder-yc.yml index 385b578..fd34471 100644 --- a/electron-builder-yc.yml +++ b/electron-builder-yc.yml @@ -1,10 +1,10 @@ appId: com.electron.app.yc -productName: 文枢课堂 +productName: 永川中小学AI教学系统 directories: output: dist buildResources: build win: - executableName: 文枢课堂 + executableName: 永川中小学AI教学系统 icon: resources/yc-logo.png files: - '!**/.vscode/*' diff --git a/package.json b/package.json index f3599c1..7fb23eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win-ws", - "version": "2.5.11", + "version": "2.5.14", "description": "", "main": "./out/main/index.js", "author": "上海交大重庆人工智能研究院", 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/components/whiteboard/whiteboard.vue b/src/renderer/src/components/whiteboard/whiteboard.vue index be3e274..563b114 100644 --- a/src/renderer/src/components/whiteboard/whiteboard.vue +++ b/src/renderer/src/components/whiteboard/whiteboard.vue @@ -123,7 +123,7 @@
- \ No newline at end of file