From afa1fd2f8d423228cb8cc963f8c72bd95b2a9a79 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Fri, 10 Jan 2025 15:24:44 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron.vite.config.mjs | 2 +- package.json | 2 +- src/renderer/src/views/teachingDesign/container/right.vue | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) 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||'文件获取异常!') }