|
@@ -211,12 +211,8 @@ function handleGetAudioDuration(file){
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function handleAudioUploadBeforeRead(e){
|
|
function handleAudioUploadBeforeRead(e){
|
|
- const temFile=e
|
|
|
|
- if(temFile.name.indexOf('.mp3')==-1
|
|
|
|
- && temFile.name.indexOf('.wav')==-1
|
|
|
|
- && temFile.name.indexOf('.wma')==-1
|
|
|
|
- &&temFile.name.indexOf('.m4a')==-1
|
|
|
|
- ){
|
|
|
|
|
|
+ const allowedTypes = ['audio/mpeg', 'audio/mp4','audio/aac','audio/x-m4a','audio/wav']
|
|
|
|
+ if(!allowedTypes.includes(e.type)){
|
|
showToast('上传失败,上传音频格式不正确')
|
|
showToast('上传失败,上传音频格式不正确')
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
@@ -492,7 +488,7 @@ async function handleReportOpt(type){
|
|
:style="{height:'60%'}"
|
|
:style="{height:'60%'}"
|
|
>
|
|
>
|
|
<div class="upload-audio-wrap" v-if="showUploadAudio">
|
|
<div class="upload-audio-wrap" v-if="showUploadAudio">
|
|
- <div style="font-size:12px;color:#666">tips:如何是在微信中访问,请上传完音频点击播放,获取音频时长后方可保存</div>
|
|
|
|
|
|
+ <div style="font-size:12px;color:#666">tips:如果是在微信中访问,请上传完音频点击播放,获取音频时长后方可保存</div>
|
|
<template v-if="temAudioData.url">
|
|
<template v-if="temAudioData.url">
|
|
<h2>音频链接</h2>
|
|
<h2>音频链接</h2>
|
|
<p>{{temAudioData.url}}</p>
|
|
<p>{{temAudioData.url}}</p>
|