fix: bugs

This commit is contained in:
qier222 2021-05-17 19:20:21 +08:00
parent 5b6619d1de
commit 6ce9055484
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
7 changed files with 10 additions and 33 deletions

View file

@ -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));