Files
exchange/resources/assets/js/pages/admin/index.vue
T
2018-06-22 11:33:07 +08:00

54 lines
953 B
Vue

<template>
<div>
<div class="top-right links">
<template v-if="authenticated">
<router-link :to="{ name: 'admin/home' }">
{{ $t('home') }}
</router-link>
</template>
<template v-else>
<router-link :to="{ name: 'login' }">
{{ $t('login') }}
</router-link>
<router-link :to="{ name: 'register' }">
{{ $t('register') }}
</router-link>
</template>
</div>
<div class="text-center">
<div class="title mb-4">
This index
</div>
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
layout: 'basic',
metaInfo () {
// return { title: this.$t('admin.home') }
},
data: () => ({
title: window.config.appName
}),
computed: mapGetters({
authenticated: 'auth/check'
})
}
</script>
<style scoped>
.top-right {
position: absolute;
right: 10px;
top: 18px;
}