This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/routes/user.vue

31 lines
588 B
Vue
Raw Normal View History

2020-10-13 12:49:08 -07:00
<template>
2020-11-29 02:03:01 -08:00
<div>
2020-10-13 12:49:08 -07:00
<h2>
<Icon v="user"/>
<T>user.headerLong</T>
2020-10-13 12:49:08 -07:00
</h2>
2020-10-15 11:29:56 -07:00
<Account v-if="$user()"/>
2021-12-18 10:54:36 -08:00
<MfaValidation v-else-if="preToken"/>
2020-10-15 11:29:56 -07:00
<Login v-else/>
2020-10-13 12:49:08 -07:00
</div>
</template>
<script>
import { head } from "../src/helpers";
2021-12-18 10:54:36 -08:00
import {mapState} from "vuex";
2020-10-13 12:49:08 -07:00
export default {
2021-12-18 10:54:36 -08:00
computed: {
...mapState([
'preToken',
]),
},
2020-10-13 12:49:08 -07:00
head() {
return head({
title: this.$t('user.headerLong'),
});
},
}
</script>