|
@@ -52,7 +52,7 @@ export default defineComponent({
|
|
// 资源类型
|
|
// 资源类型
|
|
const mediaType = computed((): "audio" | "video" => {
|
|
const mediaType = computed((): "audio" | "video" => {
|
|
const subfix = (scoreData.value.videoFilePath || "").split(".").pop();
|
|
const subfix = (scoreData.value.videoFilePath || "").split(".").pop();
|
|
- if (subfix === "wav" || subfix === "mp3") {
|
|
|
|
|
|
+ if (subfix === "wav" || subfix === "mp3" || subfix === "m4a") {
|
|
return "audio";
|
|
return "audio";
|
|
}
|
|
}
|
|
return "video";
|
|
return "video";
|