Advertisement
Guest User

Store nuxt

a guest
Jun 29th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export const state = () => ({
  2.     activeIndex: 0    
  3. });
  4.  
  5. export const mutations = {
  6.     SET_ACTIVE_INDEX(state, activeIndex){
  7.         state.activeIndex = activeIndex;
  8.     }
  9. };
  10.  
  11. export const actions = {
  12.     async nuxtServerInit({ commit }, { req }) {
  13.        
  14.     },
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement