Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created January 25, 2019 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/2495300cab171730527e1311a4fbd3ff to your computer and use it in GitHub Desktop.
Save uno-de-piera/2495300cab171730527e1311a4fbd3ff to your computer and use it in GitHub Desktop.
<script>
import {mapState} from 'vuex'
export default {
name: 'Auth',
computed: {
...mapState('authModule', ['isLogged'])
},
watch: {
isLogged: {
handler: function (isLogged) {
console.log(isLogged)
},
deep: false
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment