BUG修复

This commit is contained in:
朱浩 2025-01-10 15:24:44 +08:00
parent 5d7533e2ab
commit afa1fd2f8d
3 changed files with 8 additions and 4 deletions

View File

@ -35,7 +35,7 @@ export default defineConfig({
target: 'http://27.128.240.72:7865',
// target: 'https://prev.ysaix.com:7868/prod-api/',
// target: 'http://36.134.181.164:7863',
// target: 'http://192.168.0.102:7865',
// target: 'http://192.168.2.237:7865',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
},

View File

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

View File

@ -153,8 +153,12 @@ const openAiPPT = async () =>{
let parentid = result.value.parentId
const res = await getEntpcoursefile(parentid)
if (res && res.code === 200) {
const smarttalk = getSmarttalkPage({fileId: parentid})
openPublicScreen('edit', res.data, smarttalk.resData) // -
const smarttalk = await getSmarttalkPage({fileId: parentid})
if (smarttalk && smarttalk.rows.length>0) {
openPublicScreen('edit', res.data, smarttalk.rows[0]) // -
}else {
ElMessage.warning(res.msg||'没有查询到课件!')
}
} else {
ElMessage.warning(res.msg||'文件获取异常!')
}