mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-21 05:14:14 +00:00
54 lines
953 B
Vue
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;
|
|
}
|