I want to load Vuex, to optimize the loading time of the first screen by introducing CDN, but put the script tag under vue, and then add "vuex":"Vuex", to webpack.base.conf.js "s externals and create a new index.js file,
.var store = new Vuex.store({
state: {
msg:"hello world"
},
mutations: {
updata(state) {
state.msg = "111";
}
}
})
export default store;
and then keep reporting errors