Skip to content

Commit

Permalink
mapState 2
Browse files Browse the repository at this point in the history
  • Loading branch information
malagege committed Jun 22, 2021
1 parent 4e9b200 commit 9c69001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Demo1.vue
Expand Up @@ -17,6 +17,8 @@ export default {
console.log('--- demo1 實作結束---')
}
},
computed:mapState(['count'])
computed:mapState({
count: state=>state.count,
})
}
</script>

0 comments on commit 9c69001

Please sign in to comment.