From 1339abf98108b6dc98d6f04536262cbf5d482a91 Mon Sep 17 00:00:00 2001 From: heixinyouzi <2410633923@qq.com> Date: Tue, 4 Jun 2024 13:27:02 +0800 Subject: [PATCH] m --- src/components/aplayerView.vue | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/components/aplayerView.vue b/src/components/aplayerView.vue index 6c6d134..5934b97 100644 --- a/src/components/aplayerView.vue +++ b/src/components/aplayerView.vue @@ -28,7 +28,7 @@ const data = reactive({ }); onMounted(async () => { // 8834041785 - const res = await fetch("https://met.hxyouzi.com/meting-api/?server=tencent&type=playlist&id=87567066822") + const res = await fetch("https://met.hxyouzi.com/meting-api/?server=tencent&type=playlist&id=7567066822") // const res = await fetch("https://met.hxyouzi.com/meting-api/?server=tencent&type=playlist&id=8834041785") const mlist = await res.json() data.audio = [] @@ -44,33 +44,6 @@ onMounted(async () => { }); - // if (import.meta.env.VITE_APP_ENV != "development") { - // const res = await $http.file.listMusic(); - // data.audio = []; - // res.data.forEach(i => { - // let name = i.split(".")[0]; - // let t = name.split("-"); - // let mid = name + "/"+ name - // data.audio.push({ - // title: t[1], - // author: t[0], - // url: res.baseUrl + mid +'.mp3', - // pic: res.baseUrl + mid + ".jpg", - // lrc: res.baseUrl + mid + ".lrc", - // }); - // console.log('>>>>>',data.audio); - - // }); - // } else { - // const d = { - // title: "南屏晚钟", - // author: "黄龄", - // url: "https://www.hxyouzi.com/music/黄龄 - 南屏晚钟.mp3", - // pic: "https://www.hxyouzi.com/img/cover/黄龄 - 南屏晚钟.jpg", - // lrc: "/黄龄 - 南屏晚钟.lrc", - // }; - // data.audio.push(d, d, d, d, d, d, d, d, d, d, d); - // } // 创建一个音乐播放器实例,并挂载到DOM上,同时进行相关配置 const ap = new APlayer({ container: document.getElementById("aplayer"),