Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return function (...args) {
this.$$reduxDiff = diff.bind(this);
if(this.$store) {
let connectState = ()=>{
let newState = this.$store.getState();
let lastState = this.$$storeLastState;
let data = mapState(this.mapState, newState, lastState, this);
if (data !== null) {
// 有效state
this.$$storeLastState = data;
let diffData = this.$$reduxDiff(data);
this.setData(diffData);
}
}
this.$unsubscribe = this.$store.subscribe((...args) => {
// Object updated && page is showing
if(this.$$isCurrentPage) {
set: function set(x) {
this.$value = x;
if (x == null) return;
_core.wxa.launch(type, x, path);
}
});
set(x) {
this.$value = x;
if (x == null) return;
wxa.launch(type, x, path);
},
});