blob: 3a5d9663ad0ec7d102af26d0fb8e603b50600db7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<template>
<div class="container max-width-xs padding-y-lg">
<div class="text-component text-center margin-bottom-sm">
<h1>dough</h1>
</div>
</div>
</template>
<script>
import store from "../store";
import router from "../router";
import account from "../api/account";
export default {
mounted() {
let user = account.getUser().then((res) => res);
if (user) {
account
.signIn()
.then((user) => log(user))
.catch((err) => error(err));
} else {
account.getUser().then((res) => {
store.commit("checkForAuthState");
router.replace("/");
});
}
},
};
</script>
|