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 });