[Vuejs]-Access store inside component method : Cannot read property '$store' of undefined

0๐Ÿ‘

I find the solution, i need to use a arrow function to use $this from the context.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#No_separate_this

Leave a comment