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