mapActions using vuex
//storeaction
const actions = {
setLoginInfo ({ commit }, data) {
localStorage.setItem("loginStatus", true)
commit("SET_LOGIN_STATUS", true)
},
setGwShopUserToken ({ commit }, token) {
localStorage.setItem("GwShopUserToken", token)
commit("SET_GW_SHOP_USER_TOKEN", "")
},
}
//
...mapActions([
"setGwShopUserToken"
])
I don"t know what caused it