提交 3972616c 编写于 作者: fxy060608's avatar fxy060608

fix(mp-baidu): page.onShow when navigateBack

上级 60fbd33d
...@@ -1339,8 +1339,6 @@ function parsePage (vuePageOptions) { ...@@ -1339,8 +1339,6 @@ function parsePage (vuePageOptions) {
this.pageinstance._$args = args; this.pageinstance._$args = args;
} }
}; };
// TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发
delete pageOptions.methods.onShow;
pageOptions.methods.onUnload = function onUnload () { pageOptions.methods.onUnload = function onUnload () {
this.$vm.__call_hook('onUnload'); this.$vm.__call_hook('onUnload');
......
{ {
"name": "@dcloudio/uni-mp-baidu", "name": "@dcloudio/uni-mp-baidu",
"version": "0.0.849", "version": "0.0.850",
"description": "uni-app mp-baidu", "description": "uni-app mp-baidu",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -34,8 +34,6 @@ export default function parsePage (vuePageOptions) { ...@@ -34,8 +34,6 @@ export default function parsePage (vuePageOptions) {
this.pageinstance._$args = args this.pageinstance._$args = args
} }
} }
// TODO 目前版本 百度 Component 作为页面时,methods 中的 onShow 不触发
delete pageOptions.methods.onShow
pageOptions.methods.onUnload = function onUnload () { pageOptions.methods.onUnload = function onUnload () {
this.$vm.__call_hook('onUnload') this.$vm.__call_hook('onUnload')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册