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
No description provided.
The text was updated successfully, but these errors were encountered:
看了下源码,貌似不能
Sorry, something went wrong.
可以修改的 修改源码 connect.js对Component支持
修改内容
const { onLoad: _onLoad, onUnload: _onUnload, ready: _ready, detached: _detached, } = pageConfig function onLoad(options) { this.store = app.store; if (!this.store) { warning("Store对象不存在!") } if(shouldSubscribe){ this.unsubscribe = this.store.subscribe(handleChange.bind(this, options)); handleChange.call(this, options) } if (typeof _onLoad === 'function') { _onLoad.call(this, options) } if (typeof _ready === 'function') { _ready.call(this, options) } } function onUnload() { if (typeof _onUnload === 'function') { _onUnload.call(this) } if (typeof _detached === 'function') { _detached.call(this) } typeof this.unsubscribe === 'function' && this.unsubscribe() } /** * 兼容Component情况 */ const ready = onLoad const detached = onUnload return assign({}, pageConfig, mapDispatch(app.store.dispatch), {onLoad, onUnload, ready, detached})
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: