From d832ee8d3cc970943f751832b7ffb5b5e36edf63 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 1 Nov 2019 18:28:57 +0800 Subject: [PATCH] fix(v3): onResize args --- packages/uni-app-plus/dist/index.v3.js | 2 +- src/core/service/bridge/on.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-app-plus/dist/index.v3.js b/packages/uni-app-plus/dist/index.v3.js index 57c94fe60..cba66054d 100644 --- a/packages/uni-app-plus/dist/index.v3.js +++ b/packages/uni-app-plus/dist/index.v3.js @@ -9435,7 +9435,7 @@ var serviceContext = (function () { function onResize (args, pageId) { const page = getCurrentPages().find(page => page.$page.id === pageId); - page && callPageHook(page, 'onResize'); + page && callPageHook(page, 'onResize', args); } function onPullDownRefresh (args, pageId) { diff --git a/src/core/service/bridge/on.js b/src/core/service/bridge/on.js index 2471ecb09..01c9b20d6 100644 --- a/src/core/service/bridge/on.js +++ b/src/core/service/bridge/on.js @@ -21,7 +21,7 @@ export default function initOn (on, { function onResize (args, pageId) { const page = getCurrentPages().find(page => page.$page.id === pageId) - page && callPageHook(page, 'onResize') + page && callPageHook(page, 'onResize', args) } function onPullDownRefresh (args, pageId) { -- GitLab