vue.esm.js?65d7:479[Vue warn]: Error in render function: "TypeError: Cannot read property 'state' of undefined"
vue.esm.js?65d7:479[Vue warn]: Error in render function: "TypeError: Cannot read property 'state' of undefined"
10 回答11.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
2 回答4.7k 阅读✓ 已解决
4 回答4.3k 阅读✓ 已解决
mapState 不要用 箭头函数 取值,换成 正常的函数写法就新的,vuex 使用了 cell 方法调用,但是 箭头函数没有 this,所以才会出现这个问题
换成这种试试