diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-12-20 10:52:41 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-12-20 10:52:41 +0900 |
| commit | b408ef5ba58cc5aec46c711a7093808bdf2ba053 (patch) | |
| tree | dc6333ef99d07d3fd292ac729a356608b44e438b /src | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-b408ef5ba58cc5aec46c711a7093808bdf2ba053.tar.gz sharkey-b408ef5ba58cc5aec46c711a7093808bdf2ba053.tar.bz2 sharkey-b408ef5ba58cc5aec46c711a7093808bdf2ba053.zip | |
Update migration
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/init.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/init.ts b/src/client/init.ts index fa20622a1a..609c1086a5 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -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'; |