提交 00ca65e3 编写于 作者: fxy060608's avatar fxy060608

fix(mp): mp-baidu onShow

上级 16428aab
......@@ -1209,6 +1209,8 @@ function parseComponent (vueOptions) {
this.$vm.$mp.query = this.pageinstance._$args; // 兼容 mpvue
this.$vm.__call_hook('onLoad', this.pageinstance._$args);
// TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发
this.$vm.__call_hook('onShow');
}
};
......@@ -1271,6 +1273,8 @@ function parsePage (vuePageOptions) {
// 百度 onLoad 在 attached 之前触发,先存储 args, 在 attached 里边触发 onLoad
this.pageinstance._$args = args;
};
// TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发
delete pageOptions.methods.onShow;
pageOptions.methods.onUnload = function onUnload () {
this.$vm.__call_hook('onUnload');
......
{
"name": "@dcloudio/uni-mp-baidu",
"version": "0.0.837",
"version": "0.0.838",
"description": "uni-app mp-baidu",
"main": "dist/index.js",
"scripts": {
......
......@@ -21,6 +21,8 @@ export default function parseComponent (vueOptions) {
this.$vm.$mp.query = this.pageinstance._$args // 兼容 mpvue
this.$vm.__call_hook('onLoad', this.pageinstance._$args)
// TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发
this.$vm.__call_hook('onShow')
}
}
......
......@@ -29,6 +29,8 @@ export default function parsePage (vuePageOptions) {
// 百度 onLoad 在 attached 之前触发,先存储 args, 在 attached 里边触发 onLoad
this.pageinstance._$args = args
}
// TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发
delete pageOptions.methods.onShow
pageOptions.methods.onUnload = function onUnload () {
this.$vm.__call_hook('onUnload')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册