mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
修复刷新页面后音量复原为100%的bug
This commit is contained in:
parent
e11ad6bf46
commit
b83aeda687
5 changed files with 7 additions and 11 deletions
|
|
@ -117,6 +117,7 @@ import { isLoggedIn } from "@/utils/auth";
|
|||
import { userLikedSongsIDs } from "@/api/user";
|
||||
import { likeATrack } from "@/api/track";
|
||||
import "@/assets/css/slider.css";
|
||||
import { Howler } from "howler";
|
||||
|
||||
import ButtonIcon from "@/components/ButtonIcon.vue";
|
||||
import VueSlider from "vue-slider-component";
|
||||
|
|
@ -145,7 +146,7 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["player", "howler", "Howler", "settings", "liked"]),
|
||||
...mapState(["player", "howler", "settings", "liked"]),
|
||||
currentTrack() {
|
||||
return this.player.currentTrack;
|
||||
},
|
||||
|
|
@ -155,7 +156,7 @@ export default {
|
|||
},
|
||||
set(value) {
|
||||
this.updatePlayerState({ key: "volume", value });
|
||||
this.Howler.volume(value);
|
||||
Howler.volume(value);
|
||||
},
|
||||
},
|
||||
playing() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue