Skip to content

Commit

Permalink
fix(okam-core): fix script error whem switching from background
Browse files Browse the repository at this point in the history
this.$app.$store.dispatch is not aceessable, replace it with this.$store.dispatch
  • Loading branch information
lirenhai committed May 22, 2019
1 parent 9f460b0 commit 28a2652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/okam-core/src/extend/data/redux/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import connect from './connect';

function subscribeStoreChange() {
if (this.__storeChangeHandler && !this.__unsubscribeStore) {
this.__unsubscribeStore = this.$app.$store.subscribe(
this.__unsubscribeStore = this.$store.subscribe(
this.$fireStoreChange
);
}
Expand Down

0 comments on commit 28a2652

Please sign in to comment.