index.vue
940 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
<v-layout
column
justify-center
align-center
>
<v-flex
xs12
sm8
md1
>
<div v-if="!me">
Do login
</div>
<div v-else>
{{me.username}}님 환영합니다
<v-data-table
:headers="headers"
:items="files"
:items-per-page="10"
class="elevation-1"
/>
</div>
</v-flex>
</v-layout>
</template>
<script>
import Navbar from "../components/Navbar";
export default {
name: "home",
components: {Navbar},
data() {
return {
headers: [
{
text: '이름',
}, {
text: '수정한 날짜',
}, {
text: '공유',
}, {
text: '크기',
}
],
files: []
}
},
computed: {
me() {
return this.$store.state.user.me;
}
}
}
</script>