hookehuyr

feat(音频上传): 扩展支持的音频格式列表

添加对 .flac, .ogg, .wma, .m4a 格式的支持,以兼容更多音频文件类型
...@@ -595,7 +595,7 @@ const getAcceptType = () => { ...@@ -595,7 +595,7 @@ const getAcceptType = () => {
595 const acceptMap = { 595 const acceptMap = {
596 'image': 'image/*', 596 'image': 'image/*',
597 'video': 'video/*', 597 'video': 'video/*',
598 - 'audio': '.mp3,.wav,.aac' 598 + 'audio': '.mp3,.wav,.aac,.flac,.ogg,.wma,.m4a'
599 } 599 }
600 return acceptMap[activeType.value] || '*' 600 return acceptMap[activeType.value] || '*'
601 } 601 }
...@@ -608,7 +608,7 @@ const getUploadTips = () => { ...@@ -608,7 +608,7 @@ const getUploadTips = () => {
608 const tipsMap = { 608 const tipsMap = {
609 'image': '支持格式:jpg/jpeg/png', 609 'image': '支持格式:jpg/jpeg/png',
610 'video': '支持格式:视频文件', 610 'video': '支持格式:视频文件',
611 - 'audio': '支持格式:.mp3/.wav/.aac 音频文件' 611 + 'audio': '支持格式:.mp3/.wav/.aac/.flac/.ogg/.wma/.m4a 音频文件'
612 } 612 }
613 return tipsMap[activeType.value] || '' 613 return tipsMap[activeType.value] || ''
614 } 614 }
...@@ -825,7 +825,7 @@ const onClickPreview = (file, detail) => { ...@@ -825,7 +825,7 @@ const onClickPreview = (file, detail) => {
825 * @returns {boolean} 825 * @returns {boolean}
826 */ 826 */
827 const isAudioFile = (fileName) => { 827 const isAudioFile = (fileName) => {
828 - const audioExtensions = ['.mp3', '.wav', '.ogg', '.aac', '.m4a', '.flac'] 828 + const audioExtensions = ['.mp3', '.wav', '.ogg', '.aac', '.m4a', '.flac', '.wma']
829 return audioExtensions.some(ext => fileName.toLowerCase().includes(ext)) 829 return audioExtensions.some(ext => fileName.toLowerCase().includes(ext))
830 } 830 }
831 831
......