Search code examples
node.jsvue.jsvuexstore

Where is vuex physically stored?


How can i access vuex data using the console or any other method when my vue app is on production?

Can't use Vue Devtools because i am on production


Solution

  • You can access the Vuex store from the dev console by querying any element that has Vue properties. For example:

    document.getElementsByTagName('a')[0].__vue__.$store
    

    If you are using nuxt, you can also access it from

    window.$nuxt.$store