Skip to content

Commit

Permalink
VueX count test
Browse files Browse the repository at this point in the history
  • Loading branch information
niziming committed Dec 4, 2019
1 parent f239444 commit fdd0c8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ export default {
},
computed: {
count () {
return this.$store.state.count
return this.$store.state.module.count
}
},
mounted () {
console.log(this.$store.state)
}
}
</script>
Expand Down

0 comments on commit fdd0c8b

Please sign in to comment.