diff --git a/electron.vite.config.mjs b/electron.vite.config.mjs index fb25549..6b6f5d8 100644 --- a/electron.vite.config.mjs +++ b/electron.vite.config.mjs @@ -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/, '') }, diff --git a/package.json b/package.json index ee99a79..fbdbc6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win-ws", - "version": "2.5.14", + "version": "2.5.15", "description": "", "main": "./out/main/index.js", "author": "上海交大重庆人工智能研究院", diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue index c075637..0e0e21a 100644 --- a/src/renderer/src/views/teachingDesign/container/right.vue +++ b/src/renderer/src/views/teachingDesign/container/right.vue @@ -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||'文件获取异常!') }