Vue
Uncaught Error: [vuex] store must be called with the new operator.
Uncaught Error: [vuex] store must be called with the new operator.
报错:Uncaught Error: [vuex] store must be called with the new operator.原因:在使用Vuex.Store()的时候忘记加上new了const store = Vuex.Store({//Vuex前面少了newmodules:{user}})改正:const store = new ...
所有评论(0)