解决vuex“状态管理声明输错”后报错为:"Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_1_vuex__.a.store is not a constructor"
//Vuex index.js 源码
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
import actions from './actions'
import mutations from './mutations'
import state from './state'
import getters from './getters'
let store = new Vuex.store({
actions,
mutations,
state,
getters,
})
export default store
报错
解决:实例化输错