From 638a7ea9d2d2ae8c3bb947638a669b6fdacd985a Mon Sep 17 00:00:00 2001 From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com> Date: 星期五, 22 八月 2025 10:58:17 +0800 Subject: [PATCH] 修改新增 --- src/views/work/onlineEducation/offlineEducation/index.vue | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/views/work/onlineEducation/offlineEducation/index.vue b/src/views/work/onlineEducation/offlineEducation/index.vue index d7bb0ff..7bea66f 100644 --- a/src/views/work/onlineEducation/offlineEducation/index.vue +++ b/src/views/work/onlineEducation/offlineEducation/index.vue @@ -205,7 +205,7 @@ } const openFile = async(path)=>{ const ext = path.split('.').pop().toLowerCase(); - if (ext === 'doc' || ext === 'xls' || ext === 'xlsx') { + if (ext === 'doc' || ext === 'xls' || ext === 'xlsx' || ext === 'ppt' || ext === 'pptx') { ElMessageBox.confirm(`暂不支持线上预览.${ext}文件,是否下载查看?`, '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => { window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank'); }).catch(() => { -- Gitblit v1.9.2