fix: 前端上传组件支持PPT/PPTX文件
All checks were successful
continuous-integration/drone/push Build is passing

- edit-course.vue: 更新accept属性添加.ppt和.pptx
- 更新提示文字显示支持PPT格式
This commit is contained in:
yuliang_guo
2026-01-31 11:54:16 +08:00
parent c3aa4e85e7
commit 0b8f8aa6ca

View File

@@ -611,7 +611,7 @@
:on-remove="handleFileRemove"
:before-upload="beforeUpload"
multiple
accept=".txt,.md,.mdx,.pdf,.html,.htm,.xlsx,.xls,.docx,.csv,.vtt,.properties"
accept=".txt,.md,.mdx,.pdf,.html,.htm,.xlsx,.xls,.docx,.doc,.pptx,.ppt,.csv,.vtt,.properties"
>
<el-icon class="el-icon--upload"><upload-filled /></el-icon>
<div class="el-upload__text">
@@ -619,7 +619,7 @@
</div>
<template #tip>
<div class="el-upload__tip">
支持格式TXTMarkdownMDXPDFHTMLExcelWordCSVVTTProperties<br>
支持格式TXTMarkdownMDXPDFHTMLExcelWordPPTCSVVTTProperties<br>
单个文件不超过 15MB
</div>
</template>