fix migration script
This commit is contained in:
parent
49dfcd4227
commit
377b0399a0
@ -15,6 +15,7 @@ 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));
|
||||||
|
|
||||||
|
if (vuex.device.userData) {
|
||||||
for (const [k, v] of Object.entries(vuex.device.userData)) {
|
for (const [k, v] of Object.entries(vuex.device.userData)) {
|
||||||
localStorage.setItem('pizzax::base::' + k, JSON.stringify({
|
localStorage.setItem('pizzax::base::' + k, JSON.stringify({
|
||||||
widgets: v.widgets
|
widgets: v.widgets
|
||||||
@ -27,6 +28,7 @@ if (localStorage.getItem('vuex') != null) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
localStorage.setItem('vuex-old', JSON.stringify(vuex));
|
localStorage.setItem('vuex-old', JSON.stringify(vuex));
|
||||||
localStorage.removeItem('vuex');
|
localStorage.removeItem('vuex');
|
||||||
|
Loading…
Reference in New Issue
Block a user