Merge branch 'main' into zouyf_dev

This commit is contained in:
“zouyf” 2025-01-06 16:19:10 +08:00
commit 7bcf4b718b
5 changed files with 19 additions and 5 deletions

View File

@ -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/*'

View File

@ -1,6 +1,6 @@
{
"name": "aix-win-ws",
"version": "2.5.11",
"version": "2.5.14",
"description": "",
"main": "./out/main/index.js",
"author": "上海交大重庆人工智能研究院",

View File

@ -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()

View File

@ -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 };

View File

@ -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)
})
}