Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import Vuex from 'vuex'
  2. import pathify from 'vuex-pathify'
  3.  
  4. Nova.booting((Vue, router, store) => {
  5. Vue.use(Vuex);
  6.  
  7. const state = {
  8. count: 2
  9. };
  10.  
  11. let anotherStore = {
  12. state
  13. }
  14. store.registerModule('reports', anotherStore);
  15. pathify.plugin(store);
  16. })
  17.  
  18. //and later in some other vue
  19. data() {
  20. return {
  21. count: get('reports/count'),
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement