mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 01:30:23 +01:00
fix
This commit is contained in:
parent
de69cab239
commit
2f3a942583
2 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { get, set } from '@client/scripts/idb-proxy';
|
import { del, get, set } from '@client/scripts/idb-proxy';
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
import { apiUrl } from '@client/config';
|
import { apiUrl } from '@client/config';
|
||||||
import { waiting } from '@client/os';
|
import { waiting } from '@client/os';
|
||||||
|
@ -26,7 +26,9 @@ export async function signout() {
|
||||||
//#region Remove account
|
//#region Remove account
|
||||||
const accounts = await getAccounts();
|
const accounts = await getAccounts();
|
||||||
accounts.splice(accounts.findIndex(x => x.id === $i.id), 1);
|
accounts.splice(accounts.findIndex(x => x.id === $i.id), 1);
|
||||||
set('accounts', accounts);
|
|
||||||
|
if (accounts.length > 0) await set('accounts', accounts);
|
||||||
|
else await del('accounts');
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region Remove push notification registration
|
//#region Remove push notification registration
|
||||||
|
|
|
@ -185,7 +185,7 @@ export default defineComponent({
|
||||||
this.$emit('signup', res);
|
this.$emit('signup', res);
|
||||||
|
|
||||||
if (this.autoSet) {
|
if (this.autoSet) {
|
||||||
return login(res.token);
|
return login(res.i);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
Loading…
Reference in a new issue