Storage improve (#6976)
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* Update storage.ts
* Update storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* 🍕
* wip
* wip
* wip
* wip
* wip
* wip
* Update deck-storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update store.ts
* wip
* wip
* wip
* wip
* Update init.ts
* wip
* wip
* Update pizzax.ts
* wip
* wip
* Update timeline.vue
* Update init.ts
* wip
* wip
* Update init.ts
This commit is contained in:
parent
57d0c19a98
commit
43930e6a84
146 changed files with 1458 additions and 1519 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<div class="" v-if="$store.getters.isSignedIn && fetching">
|
||||
<div class="" v-if="$i && fetching">
|
||||
<MkLoading/>
|
||||
</div>
|
||||
<div v-else-if="$store.getters.isSignedIn">
|
||||
<div v-else-if="$i">
|
||||
<XForm
|
||||
class="form"
|
||||
ref="form"
|
||||
|
|
@ -33,6 +33,7 @@ import { defineComponent } from 'vue';
|
|||
import XForm from './auth.form.vue';
|
||||
import MkSignin from '@/components/signin.vue';
|
||||
import * as os from '@/os';
|
||||
import { login } from '@/account';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
|
|
@ -52,7 +53,7 @@ export default defineComponent({
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.$store.getters.isSignedIn) return;
|
||||
if (!this.$i) return;
|
||||
|
||||
// Fetch session
|
||||
os.api('auth/session/show', {
|
||||
|
|
@ -83,8 +84,7 @@ export default defineComponent({
|
|||
location.href = `${this.session.app.callbackUrl}?token=${this.session.token}`;
|
||||
}
|
||||
}, onLogin(res) {
|
||||
localStorage.setItem('i', res.i);
|
||||
location.reload();
|
||||
login(res.i);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue