mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-27 23:33:12 +02:00
Update migration
This commit is contained in:
parent
9a3a77cff0
commit
b408ef5ba5
1 changed files with 7 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue