0👍
Why don’t try you using the mounted()
lifecycle method to fire the mutation that stores DOM element selections in vuex state? That way you know something exists to select.
- [Vuejs]-Directive and Mixins in nativescript Vue?
- [Vuejs]-Prevent url changes on navigation Vue.js/Nuxt.js
Source:stackexchange.com