Skip to content
Snippets Groups Projects
Commit b408ef5b authored by syuilo's avatar syuilo
Browse files

Update migration

parent 9a3a77cf
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,10 @@ import '@/style.scss';
if (localStorage.getItem('vuex') != null) {
const vuex = JSON.parse(localStorage.getItem('vuex'));
localStorage.setItem('account', JSON.stringify({
...vuex.i,
token: localStorage.getItem('i')
}));
localStorage.setItem('accounts', JSON.stringify(vuex.device.accounts));
localStorage.setItem('miux:themes', JSON.stringify(vuex.device.themes));
......@@ -25,6 +29,9 @@ if (localStorage.getItem('vuex') != null) {
}
localStorage.removeItem('vuex');
localStorage.removeItem('i');
location.reload();
}
import { createApp, watch } from 'vue';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment