text: import Vue from 'vue';
  import Vuex from 'vuex';
  
  Vue.use(Vuex);
  // Create a new store instance.
  const store = new Vuex.Store({
      state() {
          return {
              boitierchoisistore: "",
              alimchoisistore: "",
              processeurchoisistore: "",
              ssdchoisistore: "",
              cartemerechoisistore: "",
              prixtotalstore: 0,
              cgchoisistore: "",
          }
      },
      mutations: {
          UPDATE_BOITIER(state, payload) {
              state.boitierchoisistore = payload
          },
          UPDATE_ALIM(state, payload) {
              state.alimchoisistore = payload
          },
          UPDATE_PROCESSEUR(state, payload) {
              state.processeurchoisistore = payload
          },
          UPDATE_SSD(state, payload) {
              state.ssdchoisistore = payload
          },
          UPDATE_CARTE_MERE(state, payload) {
              state.cartemerechoisistore = payload
          },
          UPDATE_CG(state, payload) {
              state.cgchoisistore = payload
          },
          UPDATE_PRIX(state, payload) {
              state.prixtotalstore += payload
          },
          EFFACER_PANIER(state) {
              state.boitierchoisistore = "",
                  state.cartemerechoisistore = "",
                  state.prixtotalstore = 0,
                  state.processeurchoisistore = "",
                  state.ssdchoisistore = "",
                  state.alimchoisistore = "",
                  state.cgchoisistore = ""
          }
      },
      actions: {
  
  
      }
  })
  export default store