add and use object spread

This commit is contained in:
2017-03-21 19:44:34 -07:00
parent 0125643a41
commit 2c11f883cd
4 changed files with 23 additions and 7 deletions

View File

@@ -62,12 +62,15 @@
loading: false,
}
},
computed: Object.assign({}, mapState('customers', [
'customers',
'updatedAt',
]), mapGetters('customers', [
'shouldUpdate'
])),
computed: {
...mapState('customers', [
'customers',
'updatedAt',
]),
...mapGetters('customers', [
'shouldUpdate'
]),
},
methods: {
setMode(mode) {
this.mode = (mode === 'table') ? 'table' : 'cards';