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/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 @@ <!-- 边框样式 --> <div class="blockBox"> <el-dropdown @command="updateStyle('lineDash', $event)" placement="top"> - <el-button><el-image src="../../../src/assets/images/borderstyle.png" + <el-button><el-image :src="borderStyleImg" style="width: 14px; height: 14px"></el-image></el-button> <template #dropdown> <el-dropdown-menu> @@ -303,6 +303,7 @@ import { import Contextmenu from './components/Contextmenu.vue' import { fontFamilyList, fontSizeList } from './constants' +const borderStyleImg = new URL('../../../src/assets/images/borderstyle.png', import.meta.url).href const borderImg = new URL('../../../src/assets/images/borderwidth.png', import.meta.url).href const pointerImg = new URL('../../../src/assets/images/mouse-pointer.png', import.meta.url).href const { proxy } = getCurrentInstance() diff --git a/src/renderer/src/utils/ppt-request.js b/src/renderer/src/utils/ppt-request.js index 7d49a50..f080ece 100644 --- a/src/renderer/src/utils/ppt-request.js +++ b/src/renderer/src/utils/ppt-request.js @@ -106,6 +106,18 @@ const getBackGroundV2 = async () => { throw error; } }; + +const createOutlineV2 = async (data) => { + try { + const response = await req("/api/aipptV2/createOutlineV2", "POST", data); + console.log("createOutline response:", response); + + return response.data; + } catch (error) { + console.error("请求失败:", error); + throw error; + } +}; const createPPTV2 = async (data) => { try { const response = await req("/api/aipptV2/createV2", "POST", data); @@ -127,4 +139,4 @@ const getProgressV2 = async (id) => { } }; -export { createOutline, getBackGround, createPPT, getProgress, getBackGroundV2, createPPTV2, getProgressV2, createByOutline }; +export { createOutline, getBackGround, createPPT, getProgress, getBackGroundV2, createOutlineV2, createPPTV2, getProgressV2, createByOutline }; diff --git a/src/renderer/src/views/teachingDesign/container/center.vue b/src/renderer/src/views/teachingDesign/container/center.vue index cfc8d45..ae9fa30 100644 --- a/src/renderer/src/views/teachingDesign/container/center.vue +++ b/src/renderer/src/views/teachingDesign/container/center.vue @@ -74,6 +74,7 @@ emitter.on('onShow', (data)=>{ const getDetails = (id) =>{ syllabuss(id).then( res =>{ Object.assign(curItem, res.data) + emitter.emit('onResult', res.data) }) }