diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 08270f8..0000000 --- a/public/index.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - webRTC - - - -
-

webRTC

-

选择音乐使频道内所有设备同步播放 chrome://webrtc-internals/

-
- - - - \ No newline at end of file diff --git a/src/music.js b/src/music.js index c75f685..bd82e47 100644 --- a/src/music.js +++ b/src/music.js @@ -304,7 +304,7 @@ export default class MusicList { } async remove(item) { this.ul.querySelector(`#${item.id}`)?.remove() - if (!this.audio.paused) this.stop() // 停止播放 + if (!this.audio.paused && item.id === this.playing?.id) this.stop() // 停止播放 this.list = this.list.filter(i => i.id !== item.id) this.event.onremove(item) }