mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
add output device switching
This commit is contained in:
parent
970124f70d
commit
5223089dc7
3 changed files with 46 additions and 16 deletions
|
|
@ -345,10 +345,19 @@ export default {
|
|||
);
|
||||
},
|
||||
filteredTracks() {
|
||||
return this.tracks.filter(song =>
|
||||
song.name.toLowerCase().includes(this.playlistKeyword.toLowerCase()) ||
|
||||
song.al.name.toLowerCase().includes(this.playlistKeyword.toLowerCase()) ||
|
||||
song.ar.find(artist => artist.name.toLowerCase().includes(this.playlistKeyword.toLowerCase()))
|
||||
return this.tracks.filter(
|
||||
(song) =>
|
||||
song.name
|
||||
.toLowerCase()
|
||||
.includes(this.playlistKeyword.toLowerCase()) ||
|
||||
song.al.name
|
||||
.toLowerCase()
|
||||
.includes(this.playlistKeyword.toLowerCase()) ||
|
||||
song.ar.find((artist) =>
|
||||
artist.name
|
||||
.toLowerCase()
|
||||
.includes(this.playlistKeyword.toLowerCase())
|
||||
)
|
||||
);
|
||||
},
|
||||
},
|
||||
|
|
@ -397,7 +406,11 @@ export default {
|
|||
this.lastLoadedTrackIndex = data.playlist.tracks.length - 1;
|
||||
if (this.playlist.trackCount > this.tracks.length) {
|
||||
window.addEventListener("scroll", this.handleScroll, true);
|
||||
window.addEventListener("input", this.handleSearch, this.playlistKeyword);
|
||||
window.addEventListener(
|
||||
"input",
|
||||
this.handleSearch,
|
||||
this.playlistKeyword
|
||||
);
|
||||
}
|
||||
return data;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue