Commit 1c798360 authored by rookie0701's avatar rookie0701

feat: rm wmv

parent 1062f014
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:on-change="($event) => inputChange($event, 'bg')" :on-change="($event) => inputChange($event, 'bg')"
action="" action=""
:show-file-list="false" :show-file-list="false"
accept=".mp3,.wav,.aac" accept=".mp3,.aac"
:auto-upload="false"> :auto-upload="false">
<el-input slot="trigger" type="primary" :value="bgName" style="text-align: center;width:360px" /> <el-input slot="trigger" type="primary" :value="bgName" style="text-align: center;width:360px" />
</el-upload> </el-upload>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
:on-change="($event) => inputChange($event, 'begin')" :on-change="($event) => inputChange($event, 'begin')"
action="" action=""
:show-file-list="false" :show-file-list="false"
accept=".mp3,.wav,.aac" accept=".mp3,.aac"
:auto-upload="false"> :auto-upload="false">
<el-input slot="trigger" type="primary" :value="beginName" style="text-align: center;width:360px" /> <el-input slot="trigger" type="primary" :value="beginName" style="text-align: center;width:360px" />
</el-upload> </el-upload>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
:on-change="($event) => inputChange($event, 'result')" :on-change="($event) => inputChange($event, 'result')"
action="" action=""
:show-file-list="false" :show-file-list="false"
accept=".mp3,.wav,.aac" accept=".mp3,.aac"
:auto-upload="false"> :auto-upload="false">
<el-input slot="trigger" type="primary" :value="resultName" style="text-align: center;width:360px" /> <el-input slot="trigger" type="primary" :value="resultName" style="text-align: center;width:360px" />
</el-upload> </el-upload>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<el-form-item label=" "> <el-form-item label=" ">
<div class="tips"> <div class="tips">
<div class="a">支持mp3、wav、aac, 大小不超过10MB。</div> <div class="a">支持mp3、aac, 大小不超过10MB。</div>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -98,8 +98,7 @@ export default { ...@@ -98,8 +98,7 @@ export default {
const formData = new FormData() const formData = new FormData()
formData.append('uploadImg', file) formData.append('uploadImg', file)
const reader = new FileReader() const reader = new FileReader()
const AllowImgFileSize = 1024 * 1024 * 10 const AllowImgFileSize = 1024 * 1024 * 20
console.log(file, 11111111)
if (file) { if (file) {
if (file.size > AllowImgFileSize) { if (file.size > AllowImgFileSize) {
return this.$message.error('不允许上传大于10MB的音频') return this.$message.error('不允许上传大于10MB的音频')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment