集成服务端

This commit is contained in:
zilong
2021-10-26 19:52:38 +08:00
parent e766634a42
commit bb6588ec05
5 changed files with 30 additions and 6 deletions

View File

@@ -135,11 +135,12 @@ const pause = () => {
const resume = async () => {
if (audioEl.value.readyState) {
//如果暂停过了5分钟,需要再次载入歌曲
//如果暂停过了10分钟,需要再次载入歌曲
// console.log(Date.now() - lastPause);
if (Date.now() - lastPause > 1000 * 60 * 5) {
console.log("暂停过了5分钟,再次载入歌曲");
if (Date.now() - lastPause > 1000 * 10 * 5) {
console.log("暂停过了10分钟,再次载入歌曲");
await play(store.state.settings.songId, false);
// console.log(currentTime);
audioEl.value.currentTime = currentTime;
}
audioEl.value.play();

View File

@@ -284,6 +284,9 @@ export default {};
.ar {
// width: 120px;
flex: 2;
// color: #999;
margin-top: 1px;
font-size: 12px;
.text-el-line-normal();
}
.al {