摘要: 报错截图: 我的解决思路: 1.先检查gettes方向获取与actions提交是否畅通,同时专注检查code是否输错。 2.我查了别人多数是“”在vuex中没有mutation,有的是mutations,把上面的mutation修改为mutations即可“”这样的问题 3.我这个问题同样是没有找到 阅读全文
posted @ 2021-09-08 09:08 Crong666 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 报错: 源码: <script> import Vuex from 'vuex'; import {mapActions,mapGetters} from 'vuex'; // console.log(Vuex) export default { name: 'App', data(){ retur 阅读全文
posted @ 2021-09-08 08:52 Crong666 阅读(972) 评论(0) 推荐(0) 编辑
摘要: 报错: 源码:Vuex仓库.js let state = { count } export default state 解决:未赋值的count键 阅读全文
posted @ 2021-09-08 08:52 Crong666 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 参考原代码链接:https://www.cnblogs.com/wayneliu007/p/11932204.html 报错截图: 解决方法: 导入的getScrollParent为真返回的null改为空的数值型即可 阅读全文
posted @ 2021-09-08 08:51 Crong666 阅读(994) 评论(0) 推荐(0) 编辑
摘要: //Vuex index.js 源码 import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); import actions from './actions' import mutations from './mutations' 阅读全文
posted @ 2021-09-08 08:51 Crong666 阅读(1025) 评论(0) 推荐(0) 编辑