Implement unison reload
This commit is contained in:
tamaina
2021-02-14 21:23:36 +09:00
parent cc9bc7703a
commit 412db316cc
12 changed files with 89 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
import { reactive } from 'vue';
import { apiUrl } from '@/config';
import { waiting } from '@/os';
import { unisonReload } from '@/scripts/unison-reload';
// TODO: 他のタブと永続化されたstateを同期
@@ -75,7 +76,7 @@ export async function login(token: Account['token']) {
const me = await fetchAccount(token);
localStorage.setItem('account', JSON.stringify(me));
addAccount(me.id, token);
location.reload();
unisonReload();
}
// このファイルに書きたくないけどここに書かないと何故かVeturが認識しない