mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
fix: bugs
This commit is contained in:
parent
5b6619d1de
commit
6ce9055484
7 changed files with 10 additions and 33 deletions
|
|
@ -24,18 +24,6 @@ const updatePlayer = () => {
|
|||
let appVersion = localStorage.getItem('appVersion');
|
||||
if (appVersion === `"0.2.5"`) parsedData = {}; // 0.2.6版本重构了player
|
||||
const data = {
|
||||
_repeatMode: 'off',
|
||||
_shuffle: false,
|
||||
_list: [],
|
||||
_current: 0,
|
||||
_playlistSource: {},
|
||||
_volume: 1,
|
||||
_volumeBeforeMuted: 1,
|
||||
_currentTrack: {},
|
||||
_playNextList: [],
|
||||
_enabled: false,
|
||||
_shuffledList: [],
|
||||
_shuffledCurrent: 0,
|
||||
...parsedData,
|
||||
};
|
||||
localStorage.setItem('player', JSON.stringify(data));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue