Answer the question
In order to leave comments, you need to log in
Babel, webpack, laravel-mix...?
I can’t fix such a thing (I’ve been looking for a solution for two hours now :c ):
Tyk
UPD
app.js
import Vue from 'vue'
import store from './store/store.js'
import mapState from 'vuex'
new Vue({
computed: {
...mapState({
userStore: state => state.userStore
})
}
});
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const state = {
alo: false
}
const mutations = {
change_bool (state, value) {
state.alo = value;
}
}
const action = {
changeState: ({commit}, value) => {
commit('change_bool', value);
}
}
export default {
state, mutations, action
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question