From 674e5bdb86eefb28b9dbac26824bc54dce145e96 Mon Sep 17 00:00:00 2001 From: Prapunsak Kanasawat Date: Thu, 12 Oct 2017 09:37:29 +0700 Subject: [PATCH] Change object to shorthand property names (ES2015) --- src/App.vue | 4 +--- src/components/list.vue | 4 ++-- src/components/text.vue | 4 ++-- src/main.js | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index 801f0ff..ef73778 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,9 +8,7 @@ import Message from 'components/message'; export default { components: { Card, List, Text, Message }, - vuex: { - actions: actions - }, + vuex: { actions }, created () { this.initData(); } diff --git a/src/components/list.vue b/src/components/list.vue index 6e0cb32..74c996f 100644 --- a/src/components/list.vue +++ b/src/components/list.vue @@ -3,7 +3,7 @@ import { actions } from '../store'; export default { vuex: { - actions: actions, + actions, getters: { // 过滤后的会话列表 sessions: ({ sessions, filterKey }) => { @@ -54,4 +54,4 @@ export default { margin: 0 0 0 15px; } } - \ No newline at end of file + diff --git a/src/components/text.vue b/src/components/text.vue index ee32466..0bec5d6 100644 --- a/src/components/text.vue +++ b/src/components/text.vue @@ -3,7 +3,7 @@ import { actions } from '../store'; export default { vuex: { - actions: actions + actions }, data () { return { @@ -42,4 +42,4 @@ export default { resize: none; } } - \ No newline at end of file + diff --git a/src/main.js b/src/main.js index 3d60cae..13f0c77 100644 --- a/src/main.js +++ b/src/main.js @@ -10,5 +10,5 @@ Vue.config.devtools = true; new Vue({ el: 'body', components: { App }, - store: store + store });