Skip to content

Instantly share code, notes, and snippets.

@kozo002
Created May 16, 2020 07:41
Show Gist options
  • Save kozo002/66da84ff0927491961be77a6343a7b41 to your computer and use it in GitHub Desktop.
Save kozo002/66da84ff0927491961be77a6343a7b41 to your computer and use it in GitHub Desktop.
export default defineComponent({
setup() {
const state = reactive({
count: store.state.count,
})
return {
state,
increment() {
store.dispatch('increment')
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment