text: export const actions = {
      async nuxtServerInit({ commit, dispatch }) {
          const cartItems = this.$cookies.get('cart', { parseJSON: true });
          const wishlistItems = this.$cookies.get('wishlist', {
              parseJSON: true
          });
  
          const compareItems = this.$cookies.get('compare', { parseJSON: true });
        
  
          const auth = this.$cookies.get('auth', { parseJSON: true });
  
          //  console.log("Auth Called ihn index "+auth + "item"+compareItems);
  
          const currency = this.$cookies.get('currency', { parseJSON: true });
         
          if (cartItems && cartItems.cartItems.length > 0) {
              commit('cart/initCart', {
                  cartItems: cartItems.cartItems,
                  total: cartItems.total,
                  amount: cartItems.amount
              });
              let query = [];
              cartItems.cartItems.forEach(item => {
                  query.push(item.id);
              });
              await dispatch('product/getCartProducts', query);
          }
          if (wishlistItems) {
              commit('wishlist/initWishlist', {
                  items: wishlistItems.items,
                  total: wishlistItems.total
              });
          }
          if (compareItems) {
              commit('compare/initCompare', {
                  items: compareItems.items,
                  total: compareItems.total
              });
          }
          if (auth) {
              commit('auth/setIsLoggedIn', Boolean(auth.isLoggedIn));
              console.log("inde.js file ma chu.."+auth.isLoggedIn);
          }
          if (currency) {
              commit('app/setCurrency', currency.data);
          }
      }
  };
  