fix migration script

This commit is contained in:
syuilo 2021-02-26 18:06:48 +09:00 committed by GitHub
parent 49dfcd4227
commit 377b0399a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,16 +15,18 @@ if (localStorage.getItem('vuex') != null) {
localStorage.setItem('accounts', JSON.stringify(vuex.device.accounts)); localStorage.setItem('accounts', JSON.stringify(vuex.device.accounts));
localStorage.setItem('miux:themes', JSON.stringify(vuex.device.themes)); localStorage.setItem('miux:themes', JSON.stringify(vuex.device.themes));
for (const [k, v] of Object.entries(vuex.device.userData)) { if (vuex.device.userData) {
localStorage.setItem('pizzax::base::' + k, JSON.stringify({ for (const [k, v] of Object.entries(vuex.device.userData)) {
widgets: v.widgets localStorage.setItem('pizzax::base::' + k, JSON.stringify({
})); widgets: v.widgets
if (v.deck) {
localStorage.setItem('pizzax::deck::' + k, JSON.stringify({
columns: v.deck.columns,
layout: v.deck.layout,
})); }));
if (v.deck) {
localStorage.setItem('pizzax::deck::' + k, JSON.stringify({
columns: v.deck.columns,
layout: v.deck.layout,
}));
}
} }
} }