ecomfe / okam

Mini program development framework
https://ecomfe.github.io/okam
MIT License
416 stars 65 forks source link

修复Okam中使用redux,后台返回后redux失效问题 #41

Closed filow closed 5 years ago

filow commented 5 years ago

发现在标题所述情况下,会报this.$app.$store.dispatch为空错误,检查发现去除$app后可以修复。整个文件也没有其他使用this.$app.$store的样例。

wuhy commented 5 years ago

可以给下修复问题复现的 demo,包括复现的过程吗?建议先提个 issue 先,pr 再关联这个 issue

wuhy commented 5 years ago

看了下大概知道什么问题了,app 传入 store 是 function 类型引起问题,你这个修复方案是 ok 的,我这边直接合入了