使用Vuex时报错提示Cannot read property ‘commit’ of undefined
原因:main.js中未导入store。
解决方法:main.js中导入store。
使用Vuex时报错提示Cannot read property 'commit' of undefined
最新推荐文章于 2023-07-26 22:38:48 发布
使用Vuex时报错提示Cannot read property ‘commit’ of undefined
原因:main.js中未导入store。
解决方法:main.js中导入store。