We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望可以支持rematch, 现在写rematch可以用,就是直接写一个方法
inc () { this.$store.dipatch.count.increment() }
computed 倒是没问题,actions写法,原生的redux写法用rematch好像不行,我自己简单改了下extend/redux里的这里
toAction && Object.keys(toAction).forEach(k => { let act = toAction[k]; toAction[k] = function (...args) { // this.$store.dispatch(act.apply(null, args)); this.$store.dispatch({type: act, payload: args}); }; });
然后用
actions: { 'inc': 'count/increment', 'dec': 'count/decrement', 'up': 'count/up', 'addToCart': 'cart/add', }
这种写法倒是可以运行
The text was updated successfully, but these errors were encountered:
Merge pull request #5 from ecomfe/feature/h5_2
dd0aba8
fork Feature/h5 2
No branches or pull requests
希望可以支持rematch, 现在写rematch可以用,就是直接写一个方法
computed 倒是没问题,actions写法,原生的redux写法用rematch好像不行,我自己简单改了下extend/redux里的这里
然后用
这种写法倒是可以运行
The text was updated successfully, but these errors were encountered: