mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-15 20:58:01 +00:00
fix: player volume bug (#1918)
* fix: player volume bug * Update Player.js * Update Player.js * Update Player.js * Update Player.js
This commit is contained in:
parent
210e65dd9a
commit
622f95439d
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ export default class {
|
|||
}
|
||||
set volume(volume) {
|
||||
this._volume = volume;
|
||||
Howler.volume(volume);
|
||||
this._howler?.volume(volume)
|
||||
}
|
||||
get list() {
|
||||
return this.shuffle ? this._shuffledList : this._list;
|
||||
|
|
@ -207,7 +207,7 @@ export default class {
|
|||
|
||||
_init() {
|
||||
this._loadSelfFromLocalStorage();
|
||||
Howler.volume(this.volume);
|
||||
this._howler?.volume(this.volume);
|
||||
|
||||
if (this._enabled) {
|
||||
// 恢复当前播放歌曲
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue