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(() => {