From 21c4f863ef625e54db54ba5cf454b1ca6b50a148 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 13 Feb 2018 08:31:03 +0900 Subject: [PATCH] wip --- src/web/app/desktop/views/components/timeline.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/web/app/desktop/views/components/timeline.vue b/src/web/app/desktop/views/components/timeline.vue index 933e44825..c580e59f6 100644 --- a/src/web/app/desktop/views/components/timeline.vue +++ b/src/web/app/desktop/views/components/timeline.vue @@ -1,11 +1,11 @@ @@ -21,7 +21,7 @@ export default Vue.extend({ } }, computed: { - _posts(): any { + _posts(): any[] { return this.posts.map(post => { const date = new Date(post.created_at).getDate(); const month = new Date(post.created_at).getMonth() + 1; @@ -36,7 +36,7 @@ export default Vue.extend({ }, methods: { focus() { - (this.$refs.root as any).children[0].focus(); + (this.$el as any).children[0].focus(); } } });